This commit is contained in:
Josh Johnson 2017-04-07 09:16:51 +01:00
parent 4070b6842f
commit 1a1b05e662
2 changed files with 2 additions and 3 deletions

View file

@ -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);

View file

@ -453,7 +453,6 @@
var singlePlaceholderOption = new Choices('#choices-placeholder-option', {
removeItemButton: false,
preselectItem: false,
shouldSort: false,
});