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.
- package/dist/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +4 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +4 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/tokenfield.js +3 -3
package/dist/index.cjs
CHANGED
@@ -2646,6 +2646,8 @@ var TokenField = function TokenField(_ref) {
|
|
2646
2646
|
tokens = _ref$tokens === void 0 ? [] : _ref$tokens,
|
2647
2647
|
readOnly = _ref.readOnly,
|
2648
2648
|
options = _ref.options,
|
2649
|
+
_ref$predictive = _ref.predictive,
|
2650
|
+
predictive = _ref$predictive === void 0 ? true : _ref$predictive,
|
2649
2651
|
onChange = _ref.onChange;
|
2650
2652
|
var _useState = React.useState(),
|
2651
2653
|
value = _useState[0],
|
@@ -2684,7 +2686,7 @@ var TokenField = function TokenField(_ref) {
|
|
2684
2686
|
var sortedOptions = options ? options.toSorted(function (a, b) {
|
2685
2687
|
if (!a.label || !b.label) return 0;
|
2686
2688
|
try {
|
2687
|
-
return a.label.localeCompare(b.label);
|
2689
|
+
return a.label + "".localeCompare(b.label + "");
|
2688
2690
|
} catch (error) {
|
2689
2691
|
console.log('Error sorting options', error, a, b);
|
2690
2692
|
return 0;
|
@@ -2709,7 +2711,7 @@ var TokenField = function TokenField(_ref) {
|
|
2709
2711
|
}), options ? /*#__PURE__*/React__default["default"].createElement(DropDown, {
|
2710
2712
|
onChange: changeDropDown,
|
2711
2713
|
options: sortedOptions,
|
2712
|
-
predictive:
|
2714
|
+
predictive: predictive,
|
2713
2715
|
verbose: false
|
2714
2716
|
}) : /*#__PURE__*/React__default["default"].createElement("input", {
|
2715
2717
|
type: "text",
|