@danielgindi/selectbox 2.0.21 → 2.0.22

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.21
2
+ * @danielgindi/selectbox 2.0.22
3
3
  * git://github.com/danielgindi/selectbox.git
4
4
  */
5
5
  (function (global, factory) {
@@ -6907,7 +6907,7 @@
6907
6907
  if (this.hasFocusedItem() && p.multi) {var _p$filteredItems3, _item$ItemSymbol2;
6908
6908
  const items = (_p$filteredItems3 = p.filteredItems) !== null && _p$filteredItems3 !== void 0 ? _p$filteredItems3 : p.items;
6909
6909
  let item = items[p.focusItemIndex];
6910
- if (item._nocheck || item._nointeraction) return this;
6910
+ if (!item || item._nocheck || item._nointeraction) return this;
6911
6911
 
6912
6912
  item._checked = !item._checked;
6913
6913
  if (p.focusItemEl) {