@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.cjs.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
  'use strict';
@@ -6911,7 +6911,7 @@ class DropList {
6911
6911
  if (this.hasFocusedItem() && p.multi) {var _p$filteredItems3, _item$ItemSymbol2;
6912
6912
  const items = (_p$filteredItems3 = p.filteredItems) !== null && _p$filteredItems3 !== void 0 ? _p$filteredItems3 : p.items;
6913
6913
  let item = items[p.focusItemIndex];
6914
- if (item._nocheck || item._nointeraction) return this;
6914
+ if (!item || item._nocheck || item._nointeraction) return this;
6915
6915
 
6916
6916
  item._checked = !item._checked;
6917
6917
  if (p.focusItemEl) {