mirror of
https://github.com/Choices-js/Choices.git
synced 2024-06-01 13:32:23 +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);
|
containerOuter.appendChild(dropdown);
|
||||||
containerInner.appendChild(itemList);
|
containerInner.appendChild(itemList);
|
||||||
|
|
||||||
dropdown.appendChild(choiceList);
|
if(this.passedElement.type !== 'text') {
|
||||||
|
dropdown.appendChild(choiceList);
|
||||||
|
}
|
||||||
|
|
||||||
if(this.passedElement.type === 'select-multiple' || this.passedElement.type === 'text') {
|
if(this.passedElement.type === 'select-multiple' || this.passedElement.type === 'text') {
|
||||||
containerInner.appendChild(input);
|
containerInner.appendChild(input);
|
||||||
|
|
Loading…
Reference in a new issue