ywana-core8 0.0.973 → 0.0.974
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 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +4 -1
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +4 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/tokenfield.js +4 -2
package/dist/index.modern.js
CHANGED
@@ -2672,6 +2672,9 @@ var TokenField = function TokenField(_ref) {
|
|
2672
2672
|
}
|
2673
2673
|
}
|
2674
2674
|
var tks = Array.isArray(tokens) ? tokens : [];
|
2675
|
+
var sortedOptions = options ? options.sort(function (a, b) {
|
2676
|
+
return a.label.localeCompare(b.label);
|
2677
|
+
}) : null;
|
2675
2678
|
return /*#__PURE__*/React.createElement("div", {
|
2676
2679
|
className: "tokenField"
|
2677
2680
|
}, /*#__PURE__*/React.createElement("label", null, label), tks.map(function (text, index) {
|
@@ -2690,7 +2693,7 @@ var TokenField = function TokenField(_ref) {
|
|
2690
2693
|
});
|
2691
2694
|
}), options ? /*#__PURE__*/React.createElement(DropDown, {
|
2692
2695
|
onChange: changeDropDown,
|
2693
|
-
options:
|
2696
|
+
options: sortedOptions,
|
2694
2697
|
predictive: true,
|
2695
2698
|
verbose: false
|
2696
2699
|
}) : /*#__PURE__*/React.createElement("input", {
|