Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Oscar Azpeitia committed Feb 10, 2020
1 parent cbaf432 commit cd8a83b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions public/assets/scripts/choices.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! choices.js v9.0.1 | © 2019 Josh Johnson | https://github.com/jshjohnson/Choices#readme */
/*! choices.js v9.0.1 | © 2020 Josh Johnson | https://github.com/jshjohnson/Choices#readme */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
Expand Down Expand Up @@ -1490,7 +1490,7 @@ function () {
selected: !!option.selected,
disabled: option.disabled || option.parentNode.disabled,
placeholder: option.value === '' || option.hasAttribute('placeholder'),
customProperties: option.dataset['custom-properties']
customProperties: option.dataset.customProperties
});
});
}
Expand Down Expand Up @@ -3276,7 +3276,7 @@ function () {
isSelected: choice.selected,
isDisabled: isOptDisabled,
groupId: groupId,
customProperties: choice.customProperties,
customProperties: choice.dataset.customProperties,
placeholder: choice.placeholder
});
};
Expand Down Expand Up @@ -3577,7 +3577,7 @@ function () {
};

Choices.prototype._generatePlaceholderValue = function () {
if (this._isSelectElement) {
if (this._isSelectElement && this.passedElement.placeholderOption) {
var placeholderOption = this.passedElement.placeholderOption;
return placeholderOption ? placeholderOption.text : null;
}
Expand Down
4 changes: 2 additions & 2 deletions public/assets/scripts/choices.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/scripts/choices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ class Choices {
disabled: option.disabled || option.parentNode.disabled,
placeholder:
option.value === '' || option.hasAttribute('placeholder'),
customProperties: option.dataset['custom-properties'],
customProperties: option.dataset.customProperties,
});
});
}
Expand Down Expand Up @@ -2060,7 +2060,7 @@ class Choices {
isSelected: choice.selected,
isDisabled: isOptDisabled,
groupId,
customProperties: choice.customProperties,
customProperties: choice.dataset.customProperties,
placeholder: choice.placeholder,
});
};
Expand Down

0 comments on commit cd8a83b

Please sign in to comment.