ywana-core8 0.0.976 → 0.0.978
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 +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +3 -3
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +3 -3
- 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
@@ -2681,12 +2681,12 @@ var TokenField = function TokenField(_ref) {
|
|
2681
2681
|
}
|
2682
2682
|
}
|
2683
2683
|
var tks = Array.isArray(tokens) ? tokens : [];
|
2684
|
-
var sortedOptions = options ? options.
|
2684
|
+
var sortedOptions = options ? options.toSorted(function (a, b) {
|
2685
2685
|
if (!a.label || !b.label) return 0;
|
2686
2686
|
try {
|
2687
|
-
a.label.localeCompare(b.label);
|
2687
|
+
return a.label.localeCompare(b.label);
|
2688
2688
|
} catch (error) {
|
2689
|
-
console.log('Error sorting options', error);
|
2689
|
+
console.log('Error sorting options', error, a, b);
|
2690
2690
|
return 0;
|
2691
2691
|
}
|
2692
2692
|
}) : null;
|