mirror of
https://github.com/Choices-js/Choices.git
synced 2024-05-17 13:06:34 +02:00
Version 4.0.1
This commit is contained in:
parent
4fdf7b8d1d
commit
dad2b345cd
|
@ -1,4 +1,4 @@
|
||||||
/*! choices.js v4.0.0 | (c) 2018 Josh Johnson | https://github.com/jshjohnson/Choices#readme */
|
/*! choices.js v4.0.1 | (c) 2018 Josh Johnson | https://github.com/jshjohnson/Choices#readme */
|
||||||
(function webpackUniversalModuleDefinition(root, factory) {
|
(function webpackUniversalModuleDefinition(root, factory) {
|
||||||
//CommonJS2
|
//CommonJS2
|
||||||
if(typeof exports === 'object' && typeof module === 'object')
|
if(typeof exports === 'object' && typeof module === 'object')
|
||||||
|
@ -2161,7 +2161,6 @@ var Choices = function () {
|
||||||
this._prevState = {};
|
this._prevState = {};
|
||||||
this._currentValue = '';
|
this._currentValue = '';
|
||||||
this._canSearch = this.config.searchEnabled;
|
this._canSearch = this.config.searchEnabled;
|
||||||
this._isDisabled = this.config.addItems;
|
|
||||||
this._isScrollingOnIe = false;
|
this._isScrollingOnIe = false;
|
||||||
this._highlightPosition = 0;
|
this._highlightPosition = 0;
|
||||||
this._wasTap = true;
|
this._wasTap = true;
|
||||||
|
@ -2259,39 +2258,31 @@ var Choices = function () {
|
||||||
}, {
|
}, {
|
||||||
key: 'enable',
|
key: 'enable',
|
||||||
value: function enable() {
|
value: function enable() {
|
||||||
if (!this._isDisabled) {
|
if (this.passedElement.isDisabled) {
|
||||||
return this;
|
this.passedElement.enable();
|
||||||
}
|
}
|
||||||
|
|
||||||
this.passedElement.enable();
|
|
||||||
|
|
||||||
if (this.containerOuter.isDisabled) {
|
if (this.containerOuter.isDisabled) {
|
||||||
this._addEventListeners();
|
this._addEventListeners();
|
||||||
this.input.enable();
|
this.input.enable();
|
||||||
this.containerOuter.enable();
|
this.containerOuter.enable();
|
||||||
}
|
}
|
||||||
|
|
||||||
this._isDisabled = false;
|
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
key: 'disable',
|
key: 'disable',
|
||||||
value: function disable() {
|
value: function disable() {
|
||||||
if (this._isDisabled) {
|
if (!this.passedElement.isDisabled) {
|
||||||
return this;
|
this.passedElement.disable();
|
||||||
}
|
}
|
||||||
|
|
||||||
this.passedElement.disable();
|
|
||||||
|
|
||||||
if (!this.containerOuter.isDisabled) {
|
if (!this.containerOuter.isDisabled) {
|
||||||
this._removeEventListeners();
|
this._removeEventListeners();
|
||||||
this.input.disable();
|
this.input.disable();
|
||||||
this.containerOuter.disable();
|
this.containerOuter.disable();
|
||||||
}
|
}
|
||||||
|
|
||||||
this._isDisabled = true;
|
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
|
|
File diff suppressed because one or more lines are too long
4
public/assets/scripts/choices.min.js
vendored
4
public/assets/scripts/choices.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue