@danielgindi/selectbox 1.0.110 → 1.0.112

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 1.0.110
2
+ * @danielgindi/selectbox 1.0.112
3
3
  * git://github.com/danielgindi/selectbox.git
4
4
  */
5
5
  import { createElement, closestUntil, setElementAttrs, next, prev } from '@danielgindi/dom-utils/lib/Dom';
@@ -3196,6 +3196,13 @@ class SelectBox {
3196
3196
  remove(p.clearButtonWrapper);
3197
3197
  delete p.clearButtonWrapper;
3198
3198
 
3199
+ if (multi &&
3200
+ p.selectedValues &&
3201
+ p.selectedValues.length === 1 &&
3202
+ Array.isArray(p.selectedValues[0][p.valueProp])) {
3203
+ this.setSelectedValues(/**@type Array*/p.selectedValues[0][p.valueProp]);
3204
+ }
3205
+
3199
3206
  this._scheduleSync('full');
3200
3207
 
3201
3208
  return this;