@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/dist/lib.cjs.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @danielgindi/selectbox 2.0.47
2
+ * @danielgindi/selectbox 2.0.48
3
3
  * git://github.com/danielgindi/selectbox.git
4
4
  */
5
5
  'use strict';
@@ -6947,9 +6947,8 @@ class DropList {
6947
6947
  }
6948
6948
 
6949
6949
  if (p.multi) {
6950
- if (p.focusItemIndex >= 0) {
6950
+ if (this.hasFocusedItem()) {
6951
6951
  this.toggleFocusedItem();
6952
- event.preventDefault();
6953
6952
  }
6954
6953
  } else {var _item$ItemSymbol3;
6955
6954
  this._setSingleSelectedItemEl(p.focusItemEl);
@@ -8739,8 +8738,6 @@ class DropList {
8739
8738
  if (this[DestroyedSymbol$1])
8740
8739
  return;
8741
8740
 
8742
- this.toggleFocusedItem();
8743
-
8744
8741
  if (document.activeElement !== this.el && p.focusItemEl) {
8745
8742
  clearTimeout(p.blurTimer);
8746
8743
  }