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.cjs CHANGED
@@ -1965,7 +1965,7 @@ var TokenField = function TokenField(_ref) {
1965
1965
  event.preventDefault();
1966
1966
  event.stopPropagation();
1967
1967
  var token = event.target.value;
1968
- var next = tokens.concat(token.trim());
1968
+ var next = Array.isArray(tokens) ? tokens.concat(token) : [token];
1969
1969
  if (onChange) onChange(id, next);
1970
1970
  setValue('');
1971
1971
  }