@danielgindi/selectbox 2.0.11 → 2.0.12

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.11
2
+ * @danielgindi/selectbox 2.0.12
3
3
  * git://github.com/danielgindi/selectbox.git
4
4
  */
5
5
  'use strict';
@@ -11196,6 +11196,8 @@ class SelectBox {
11196
11196
 
11197
11197
  if (p.dropList.hasFocusedItem()) {
11198
11198
  p.dropList.setFocusedItemAtIndex(p.dropList.getFocusedItemIndex());
11199
+ } else if (!p.multi && this.getValue() !== undefined) {
11200
+ p.dropList.setFocusedItemByValue(this.getValue());
11199
11201
  }
11200
11202
 
11201
11203
  return this;