ywana-core8 0.0.975 → 0.0.976
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 +6 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +6 -1
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +6 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/tokenfield.js +6 -1
package/dist/index.modern.js
CHANGED
@@ -2674,7 +2674,12 @@ var TokenField = function TokenField(_ref) {
|
|
2674
2674
|
var tks = Array.isArray(tokens) ? tokens : [];
|
2675
2675
|
var sortedOptions = options ? options.sort(function (a, b) {
|
2676
2676
|
if (!a.label || !b.label) return 0;
|
2677
|
-
|
2677
|
+
try {
|
2678
|
+
a.label.localeCompare(b.label);
|
2679
|
+
} catch (error) {
|
2680
|
+
console.log('Error sorting options', error);
|
2681
|
+
return 0;
|
2682
|
+
}
|
2678
2683
|
}) : null;
|
2679
2684
|
return /*#__PURE__*/React.createElement("div", {
|
2680
2685
|
className: "tokenField"
|