@danielgindi/selectbox 2.0.36 → 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.cjs.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @danielgindi/selectbox 2.0.36
2
+ * @danielgindi/selectbox 2.0.37
3
3
  * git://github.com/danielgindi/selectbox.git
4
4
  */
5
5
  'use strict';
@@ -9032,10 +9032,6 @@ class DropList {
9032
9032
  let next = p.virtualListHelper.getItemElementAt(matchIndex);
9033
9033
  this._focus(evt, next || null, matchIndex, true);
9034
9034
 
9035
- if (!this.isVisible()) {
9036
- this.triggerItemSelection(next ? null : items[matchIndex], evt);
9037
- }
9038
-
9039
9035
  // Record the last filter used
9040
9036
  p.previousFilter = keyword;
9041
9037
 
@@ -12022,6 +12018,10 @@ class SelectBox {
12022
12018
  break;
12023
12019
 
12024
12020
  default:
12021
+ if (!dropList.isVisible()) {
12022
+ this.openList();
12023
+ }
12024
+
12025
12025
  dropList._keydownFreeType(evt);
12026
12026
  break;
12027
12027
  }