Don't append choice list if text input

This commit is contained in:
Josh Johnson 2016-08-08 17:54:06 +01:00
parent fd8b594568
commit 8cfa698746

View file

@ -1651,7 +1651,9 @@ export class Choices {
containerOuter.appendChild(dropdown);
containerInner.appendChild(itemList);
dropdown.appendChild(choiceList);
if(this.passedElement.type !== 'text') {
dropdown.appendChild(choiceList);
}
if(this.passedElement.type === 'select-multiple' || this.passedElement.type === 'text') {
containerInner.appendChild(input);