@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/lib/DropList.js CHANGED
@@ -654,7 +654,7 @@ class DropList {
654
654
  if (this.hasFocusedItem() && p.multi) {
655
655
  const items = p.filteredItems ?? p.items;
656
656
  let item = items[p.focusItemIndex];
657
- if (item._nocheck || item._nointeraction) return this;
657
+ if (!item || item._nocheck || item._nointeraction) return this;
658
658
 
659
659
  item._checked = !item._checked;
660
660
  if (p.focusItemEl) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danielgindi/selectbox",
3
- "version": "2.0.21",
3
+ "version": "2.0.22",
4
4
  "description": "A collection of dom utilities. So you can work natively with the dom without dom frameworks.",
5
5
  "main": "dist/lib.cjs.min.js",
6
6
  "module": "lib/index.js",