ywana-core8 0.0.482 → 0.0.483

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
@@ -1960,7 +1960,7 @@
1960
1960
  event.preventDefault();
1961
1961
  event.stopPropagation();
1962
1962
  var token = event.target.value;
1963
- var next = tokens.concat(token.trim());
1963
+ var next = Array.isArray(tokens) ? tokens.concat(token) : [token];
1964
1964
  if (onChange) onChange(id, next);
1965
1965
  setValue('');
1966
1966
  }