mirror of
https://github.com/Choices-js/Choices.git
synced 2024-05-02 05:52:46 +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) {
|
||||
//CommonJS2
|
||||
if(typeof exports === 'object' && typeof module === 'object')
|
||||
|
@ -2161,7 +2161,6 @@ var Choices = function () {
|
|||
this._prevState = {};
|
||||
this._currentValue = '';
|
||||
this._canSearch = this.config.searchEnabled;
|
||||
this._isDisabled = this.config.addItems;
|
||||
this._isScrollingOnIe = false;
|
||||
this._highlightPosition = 0;
|
||||
this._wasTap = true;
|
||||
|
@ -2259,39 +2258,31 @@ var Choices = function () {
|
|||
}, {
|
||||
key: 'enable',
|
||||
value: function enable() {
|
||||
if (!this._isDisabled) {
|
||||
return this;
|
||||
if (this.passedElement.isDisabled) {
|
||||
this.passedElement.enable();
|
||||
}
|
||||
|
||||
this.passedElement.enable();
|
||||
|
||||
if (this.containerOuter.isDisabled) {
|
||||
this._addEventListeners();
|
||||
this.input.enable();
|
||||
this.containerOuter.enable();
|
||||
}
|
||||
|
||||
this._isDisabled = false;
|
||||
|
||||
return this;
|
||||
}
|
||||
}, {
|
||||
key: 'disable',
|
||||
value: function disable() {
|
||||
if (this._isDisabled) {
|
||||
return this;
|
||||
if (!this.passedElement.isDisabled) {
|
||||
this.passedElement.disable();
|
||||
}
|
||||
|
||||
this.passedElement.disable();
|
||||
|
||||
if (!this.containerOuter.isDisabled) {
|
||||
this._removeEventListeners();
|
||||
this.input.disable();
|
||||
this.containerOuter.disable();
|
||||
}
|
||||
|
||||
this._isDisabled = true;
|
||||
|
||||
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