@danielgindi/selectbox 2.0.30 → 2.0.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/lib.umd.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @danielgindi/selectbox 2.0.30
2
+ * @danielgindi/selectbox 2.0.32
3
3
  * git://github.com/danielgindi/selectbox.git
4
4
  */
5
5
  (function (global, factory) {
@@ -10103,7 +10103,7 @@
10103
10103
  p.multiItemEls = [];
10104
10104
 
10105
10105
  this.enable(!p.disabled);
10106
- this.setReadOnly(!p.readOnly);
10106
+ this.setReadOnly(p.readOnly);
10107
10107
 
10108
10108
  this._setupDropdownMenu();
10109
10109
 
@@ -12671,10 +12671,10 @@
12671
12671
  DomCompat.toggleClass(p.el, "".concat(p.baseClassName, "__has_selection"), p.selectedValues.length > 0);
12672
12672
 
12673
12673
  if (p.searchable) {
12674
- if (p.input) p.input.readOnly = false;
12674
+ if (p.input) p.input.readOnly = p.readOnly;
12675
12675
  p.el.classList.add("".concat(p.baseClassName, "__searchable"));
12676
12676
  } else {
12677
- if (p.input) p.input.readOnly = p.readOnly;
12677
+ if (p.input) p.input.readOnly = true;
12678
12678
  p.el.classList.remove("".concat(p.baseClassName, "__searchable"));
12679
12679
  }
12680
12680