diff --git a/assets/scripts/src/choices.js b/assets/scripts/src/choices.js index d6a4099..17ae873 100644 --- a/assets/scripts/src/choices.js +++ b/assets/scripts/src/choices.js @@ -313,7 +313,7 @@ class Choices { const choicesFragment = fragment || document.createDocumentFragment(); const filter = this.isSearching ? sortByScore : this.config.sortFilter; - // Split array into placeholedrs and "normal" choices + // Split array into placeholders and "normal" choices const { placeholderChoices, normalChoices } = choices.reduce((acc, choice) => { if (choice.placeholder) { acc.placeholderChoices.push(choice); @@ -2374,7 +2374,7 @@ class Choices { }); }); - // Split array into placeholedrs and "normal" choices + // Split array into placeholders and "normal" choices const { placeholderChoices, normalChoices } = allChoices.reduce((acc, choice) => { if (choice.placeholder) { acc.placeholderChoices.push(choice); diff --git a/index.html b/index.html index 68f0731..ad76700 100644 --- a/index.html +++ b/index.html @@ -453,7 +453,6 @@ var singlePlaceholderOption = new Choices('#choices-placeholder-option', { removeItemButton: false, - preselectItem: false, shouldSort: false, });