@danielgindi/selectbox 2.0.16 → 2.0.18

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.16
2
+ * @danielgindi/selectbox 2.0.18
3
3
  * git://github.com/danielgindi/selectbox.git
4
4
  */
5
5
  (function (global, factory) {
@@ -9884,7 +9884,7 @@
9884
9884
  * @property {boolean} [treatGroupSelectionAsItems=false] Treat group items as normal items
9885
9885
  * @property {*[]} [stickyValues]
9886
9886
  * @property {function(a: DropList.ItemBase, b: DropList.ItemBase):number} [sortItemComparator]
9887
- * @property {boolean} [splitListCheckedGroups=true] Split groups to "checked" and "unchecked", works with `sortCheckedFirst` only
9887
+ * @property {boolean} [splitListCheckedGroups=true] Split groups to "checked" and "unchecked", works with `sortListCheckedFirst` only
9888
9888
  * @property {boolean|'touch'} [blurOnSingleSelection='touch']
9889
9889
  * @property {boolean} [multi=false] can multiple values be selected?
9890
9890
  * @property {boolean} [showSelection=true] show selection? if false, the placeholder will take effect
@@ -10548,10 +10548,10 @@
10548
10548
  setSortListCheckedFirst(sortListCheckedFirst) {
10549
10549
  const p = this._p;
10550
10550
  sortListCheckedFirst = !!sortListCheckedFirst;
10551
- if (p.sortCheckedFirst === sortListCheckedFirst)
10551
+ if (p.sortListCheckedFirst === sortListCheckedFirst)
10552
10552
  return this;
10553
10553
 
10554
- p.sortCheckedFirst = sortListCheckedFirst;
10554
+ p.sortListCheckedFirst = sortListCheckedFirst;
10555
10555
  p.itemsChanged = true;
10556
10556
  this._scheduleSync('render_list');
10557
10557
  return this;
@@ -11605,8 +11605,9 @@
11605
11605
  }
11606
11606
 
11607
11607
  const dropList = p.dropList = new DropList(_objectSpread2(_objectSpread2({
11608
- virtualMinItems: 10 },
11608
+ virtualMinItems: 10,
11609
11609
 
11610
+ searchable: false },
11610
11611
  p.listOptions), {}, {
11611
11612
 
11612
11613
  multi: p.multi,
@@ -11615,7 +11616,6 @@
11615
11616
  labelProp: p.labelProp,
11616
11617
  valueProp: p.valueProp,
11617
11618
 
11618
- searchable: false,
11619
11619
  noResultsText: p.noResultsText,
11620
11620
  filterThrottleWindow: p.filterThrottleWindow,
11621
11621
  filterOnEmptyTerm: p.filterOnEmptyTerm,
@@ -12620,7 +12620,7 @@
12620
12620
  DomCompat.toggleClass(p.el, "".concat(p.baseClassName, "__empty_selection"), p.selectedValues.length === 0);
12621
12621
  DomCompat.toggleClass(p.el, "".concat(p.baseClassName, "__has_selection"), p.selectedValues.length > 0);
12622
12622
 
12623
- if (p.searchable || p.multi) {
12623
+ if (p.searchable) {
12624
12624
  if (p.input) p.input.readOnly = false;
12625
12625
  p.el.classList.add("".concat(p.baseClassName, "__searchable"));
12626
12626
  } else {