@danielgindi/selectbox 2.0.47 → 2.0.48

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
@@ -688,9 +688,8 @@ class DropList {
688
688
  }
689
689
 
690
690
  if (p.multi) {
691
- if (p.focusItemIndex >= 0) {
691
+ if (this.hasFocusedItem()) {
692
692
  this.toggleFocusedItem();
693
- event.preventDefault();
694
693
  }
695
694
  } else {
696
695
  this._setSingleSelectedItemEl(p.focusItemEl);
@@ -2480,8 +2479,6 @@ class DropList {
2480
2479
  if (this[DestroyedSymbol])
2481
2480
  return;
2482
2481
 
2483
- this.toggleFocusedItem();
2484
-
2485
2482
  if (document.activeElement !== this.el && p.focusItemEl) {
2486
2483
  clearTimeout(p.blurTimer);
2487
2484
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danielgindi/selectbox",
3
- "version": "2.0.47",
3
+ "version": "2.0.48",
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",