@danielgindi/selectbox 2.0.35 → 2.0.37

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.35
2
+ * @danielgindi/selectbox 2.0.37
3
3
  * git://github.com/danielgindi/selectbox.git
4
4
  */
5
5
  import { createElement, closestUntil, setElementAttrs, next, prev } from '@danielgindi/dom-utils/lib/Dom';
@@ -2803,10 +2803,6 @@ class DropList {
2803
2803
  let next = p.virtualListHelper.getItemElementAt(matchIndex);
2804
2804
  this._focus(evt, next || null, matchIndex, true);
2805
2805
 
2806
- if (!this.isVisible()) {
2807
- this.triggerItemSelection(next ? null : items[matchIndex], evt);
2808
- }
2809
-
2810
2806
  // Record the last filter used
2811
2807
  p.previousFilter = keyword;
2812
2808
 
@@ -5531,6 +5527,10 @@ class SelectBox {
5531
5527
  break;
5532
5528
 
5533
5529
  default:
5530
+ if (!dropList.isVisible()) {
5531
+ this.openList();
5532
+ }
5533
+
5534
5534
  dropList._keydownFreeType(evt);
5535
5535
  break;
5536
5536
  }