@danielgindi/selectbox 2.0.21 → 2.0.23

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.23",
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",
@@ -34,6 +34,7 @@ $spinner-transition-duration: .15s;
34
34
  --selectbox-multi-item-horz-padding: 0.416em;
35
35
  --selectbox-multi-item-top-padding: 0px;
36
36
  --selectbox-multi-item-bottom-padding: 0.2em;
37
+ --selectbox-multi-search-top-offset: 0px;
37
38
 
38
39
  position: relative;
39
40
  box-sizing: border-box;
@@ -352,7 +353,7 @@ $spinner-transition-duration: .15s;
352
353
  line-height: inherit;
353
354
 
354
355
  span {
355
- vertical-align: middle;
356
+ vertical-align: top;
356
357
  }
357
358
 
358
359
  &:focus {
@@ -417,7 +418,7 @@ $spinner-transition-duration: .15s;
417
418
  margin-top: calc(var(--selectbox-multi-item-vert-spacing) +
418
419
  var(--selectbox-multi-item-border-width) +
419
420
  var(--selectbox-multi-item-top-padding) +
420
- 0.06em);
421
+ var(--selectbox-multi-search-top-offset));
421
422
  }
422
423
 
423
424
  .selectbox__single & {