@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.es6.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
  import { createElement, closestUntil, setElementAttrs, next, prev } from '@danielgindi/dom-utils/lib/Dom';
@@ -716,9 +716,8 @@ class DropList {
716
716
  }
717
717
 
718
718
  if (p.multi) {
719
- if (p.focusItemIndex >= 0) {
719
+ if (this.hasFocusedItem()) {
720
720
  this.toggleFocusedItem();
721
- event.preventDefault();
722
721
  }
723
722
  } else {
724
723
  this._setSingleSelectedItemEl(p.focusItemEl);
@@ -2508,8 +2507,6 @@ class DropList {
2508
2507
  if (this[DestroyedSymbol$1])
2509
2508
  return;
2510
2509
 
2511
- this.toggleFocusedItem();
2512
-
2513
2510
  if (document.activeElement !== this.el && p.focusItemEl) {
2514
2511
  clearTimeout(p.blurTimer);
2515
2512
  }