@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.umd.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
  (function (global, factory) {
@@ -6943,9 +6943,8 @@
6943
6943
  }
6944
6944
 
6945
6945
  if (p.multi) {
6946
- if (p.focusItemIndex >= 0) {
6946
+ if (this.hasFocusedItem()) {
6947
6947
  this.toggleFocusedItem();
6948
- event.preventDefault();
6949
6948
  }
6950
6949
  } else {var _item$ItemSymbol3;
6951
6950
  this._setSingleSelectedItemEl(p.focusItemEl);
@@ -8735,8 +8734,6 @@
8735
8734
  if (this[DestroyedSymbol$1])
8736
8735
  return;
8737
8736
 
8738
- this.toggleFocusedItem();
8739
-
8740
8737
  if (document.activeElement !== this.el && p.focusItemEl) {
8741
8738
  clearTimeout(p.blurTimer);
8742
8739
  }