ywana-core8 0.0.539 → 0.0.540
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 +11 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +11 -1
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +11 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/tokenfield.js +12 -2
package/dist/index.umd.js
CHANGED
@@ -2060,8 +2060,18 @@
|
|
2060
2060
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
2061
2061
|
className: "tokenField"
|
2062
2062
|
}, /*#__PURE__*/React__default["default"].createElement("label", null, label), tks.map(function (text, index) {
|
2063
|
+
var text2 = text;
|
2064
|
+
|
2065
|
+
if (options) {
|
2066
|
+
var lbl = options.find(function (opt) {
|
2067
|
+
return opt.value == text;
|
2068
|
+
});
|
2069
|
+
if (lbl) text2 = lbl.label;
|
2070
|
+
console.log(text, lbl, text2, options);
|
2071
|
+
}
|
2072
|
+
|
2063
2073
|
return /*#__PURE__*/React__default["default"].createElement(Token, {
|
2064
|
-
text:
|
2074
|
+
text: text2,
|
2065
2075
|
onDelete: function onDelete() {
|
2066
2076
|
return remove(index);
|
2067
2077
|
}
|