mirror of
https://github.com/Choices-js/Choices.git
synced 2026-03-14 14:45:47 +01:00
Update polyfill url
This commit is contained in:
parent
54b62acaa7
commit
6be91fc4b4
3 changed files with 18 additions and 18 deletions
|
|
@ -2114,13 +2114,13 @@ function () {
|
|||
var label = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
|
||||
var replaceChoices = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
|
||||
|
||||
if (!this._isSelectElement || !choices.length || !value) {
|
||||
if (!this._isSelectElement || !value) {
|
||||
return this;
|
||||
} // Clear choices if needed
|
||||
|
||||
|
||||
if (replaceChoices) {
|
||||
this._clearChoices();
|
||||
this.clearChoices();
|
||||
}
|
||||
|
||||
this.containerOuter.removeLoadingState();
|
||||
|
|
@ -2153,6 +2153,11 @@ function () {
|
|||
|
||||
return this;
|
||||
}
|
||||
}, {
|
||||
key: "clearChoices",
|
||||
value: function clearChoices() {
|
||||
this._store.dispatch((0, _choices.clearChoices)());
|
||||
}
|
||||
}, {
|
||||
key: "clearStore",
|
||||
value: function clearStore() {
|
||||
|
|
@ -3096,7 +3101,7 @@ function () {
|
|||
var target = event.target,
|
||||
shiftKey = event.shiftKey; // If we have our mouse down on the scrollbar and are on IE11...
|
||||
|
||||
if (target === this.choiceList && (0, _utils.isIE11)()) {
|
||||
if (this.choiceList.element.contains(target) && (0, _utils.isIE11)()) {
|
||||
this._isScrollingOnIe = true;
|
||||
}
|
||||
|
||||
|
|
@ -3451,11 +3456,6 @@ function () {
|
|||
});
|
||||
}
|
||||
}
|
||||
}, {
|
||||
key: "_clearChoices",
|
||||
value: function _clearChoices() {
|
||||
this._store.dispatch((0, _choices.clearChoices)());
|
||||
}
|
||||
}, {
|
||||
key: "_addGroup",
|
||||
value: function _addGroup(_ref15) {
|
||||
|
|
|
|||
10
assets/scripts/choices.min.js
vendored
10
assets/scripts/choices.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue