@danielgindi/selectbox 1.0.66 → 1.0.67

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.cjs.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @danielgindi/selectbox 1.0.66
2
+ * @danielgindi/selectbox 1.0.67
3
3
  * git://github.com/danielgindi/selectbox.git
4
4
  */
5
5
  'use strict';
@@ -12790,6 +12790,11 @@ var SelectBox = /*#__PURE__*/function () {
12790
12790
  stickyGroup = groups[0].filter(function (x) {return stickyValues.has(x[valueProp]);});
12791
12791
  if (stickyGroup.length > 0) {
12792
12792
  groups[0] = groups[0].filter(function (x) {return !stickyValues.has(x[valueProp]);});
12793
+
12794
+ if (groups[0].length === 0)
12795
+ groups.shift();
12796
+ } else {
12797
+ stickyGroup = null;
12793
12798
  }
12794
12799
  }
12795
12800
 
@@ -12814,7 +12819,7 @@ var SelectBox = /*#__PURE__*/function () {
12814
12819
  });
12815
12820
  }
12816
12821
 
12817
- if (stickyGroup && stickyGroup.length > 0) {
12822
+ if (stickyGroup) {
12818
12823
  groups.unshift(stickyGroup);
12819
12824
  }
12820
12825