mirror of
https://github.com/Choices-js/Choices.git
synced 2026-03-14 14:45:47 +01:00
Version 4.0.5
This commit is contained in:
parent
3058a3993f
commit
693ecc132d
4 changed files with 9 additions and 9 deletions
|
|
@ -1,4 +1,4 @@
|
|||
/*! choices.js v4.0.4 | (c) 2018 Josh Johnson | https://github.com/jshjohnson/Choices#readme */
|
||||
/*! choices.js v4.0.5 | (c) 2018 Josh Johnson | https://github.com/jshjohnson/Choices#readme */
|
||||
(function webpackUniversalModuleDefinition(root, factory) {
|
||||
//CommonJS2
|
||||
if(typeof exports === 'object' && typeof module === 'object')
|
||||
|
|
@ -3521,7 +3521,7 @@ var Choices = function () {
|
|||
var target = _ref9.target;
|
||||
|
||||
if (this.containerOuter.element.contains(target)) {
|
||||
if (!this.dropdown.isActive) {
|
||||
if (!this.dropdown.isActive && !this.containerOuter.isDisabled) {
|
||||
if (this._isTextElement) {
|
||||
if (document.activeElement !== this.input.element) {
|
||||
this.input.focus();
|
||||
|
|
@ -3972,7 +3972,7 @@ var Choices = function () {
|
|||
this.input.setWidth(true);
|
||||
}
|
||||
|
||||
if (!this.config.addItems) {
|
||||
if (!this.config.addItems || this.passedElement.element.hasAttribute('disabled')) {
|
||||
this.disable();
|
||||
}
|
||||
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
4
assets/scripts/choices.min.js
vendored
4
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