ywana-core8 0.0.980 → 0.0.982

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/index.umd.js CHANGED
@@ -2655,8 +2655,12 @@
2655
2655
  setValue(value);
2656
2656
  }
2657
2657
  function changeDropDown(fid, value) {
2658
- var next = Array.isArray(tokens) ? tokens.concat(value) : [value];
2659
- if (onChange) onChange(id, next);
2658
+ var isNumericValue = !isNaN(value);
2659
+ var valueIsNotEmpty = value && value.length > 0 || isNumericValue;
2660
+ if (valueIsNotEmpty) {
2661
+ var next = Array.isArray(tokens) ? tokens.concat(value) : [value];
2662
+ if (onChange) onChange(id, next);
2663
+ }
2660
2664
  setValue('');
2661
2665
  }
2662
2666
  function onEnter(event) {