mirror of
https://github.com/Choices-js/Choices.git
synced 2024-05-17 21:16:34 +02:00
Don't append choice list if text input
This commit is contained in:
parent
fd8b594568
commit
8cfa698746
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue