@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.umd.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
  (function (global, factory) {
@@ -12784,6 +12784,11 @@
12784
12784
  stickyGroup = groups[0].filter(function (x) {return stickyValues.has(x[valueProp]);});
12785
12785
  if (stickyGroup.length > 0) {
12786
12786
  groups[0] = groups[0].filter(function (x) {return !stickyValues.has(x[valueProp]);});
12787
+
12788
+ if (groups[0].length === 0)
12789
+ groups.shift();
12790
+ } else {
12791
+ stickyGroup = null;
12787
12792
  }
12788
12793
  }
12789
12794
 
@@ -12808,7 +12813,7 @@
12808
12813
  });
12809
12814
  }
12810
12815
 
12811
- if (stickyGroup && stickyGroup.length > 0) {
12816
+ if (stickyGroup) {
12812
12817
  groups.unshift(stickyGroup);
12813
12818
  }
12814
12819