ywana-core8 0.0.978 → 0.0.979

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.
@@ -2637,6 +2637,8 @@ var TokenField = function TokenField(_ref) {
2637
2637
  tokens = _ref$tokens === void 0 ? [] : _ref$tokens,
2638
2638
  readOnly = _ref.readOnly,
2639
2639
  options = _ref.options,
2640
+ _ref$predictive = _ref.predictive,
2641
+ predictive = _ref$predictive === void 0 ? true : _ref$predictive,
2640
2642
  onChange = _ref.onChange;
2641
2643
  var _useState = useState(),
2642
2644
  value = _useState[0],
@@ -2675,7 +2677,7 @@ var TokenField = function TokenField(_ref) {
2675
2677
  var sortedOptions = options ? options.toSorted(function (a, b) {
2676
2678
  if (!a.label || !b.label) return 0;
2677
2679
  try {
2678
- return a.label.localeCompare(b.label);
2680
+ return a.label + "".localeCompare(b.label + "");
2679
2681
  } catch (error) {
2680
2682
  console.log('Error sorting options', error, a, b);
2681
2683
  return 0;
@@ -2700,7 +2702,7 @@ var TokenField = function TokenField(_ref) {
2700
2702
  }), options ? /*#__PURE__*/React.createElement(DropDown, {
2701
2703
  onChange: changeDropDown,
2702
2704
  options: sortedOptions,
2703
- predictive: true,
2705
+ predictive: predictive,
2704
2706
  verbose: false
2705
2707
  }) : /*#__PURE__*/React.createElement("input", {
2706
2708
  type: "text",