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.cjs
CHANGED
@@ -2065,8 +2065,18 @@ var TokenField = function TokenField(_ref) {
|
|
2065
2065
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
2066
2066
|
className: "tokenField"
|
2067
2067
|
}, /*#__PURE__*/React__default["default"].createElement("label", null, label), tks.map(function (text, index) {
|
2068
|
+
var text2 = text;
|
2069
|
+
|
2070
|
+
if (options) {
|
2071
|
+
var lbl = options.find(function (opt) {
|
2072
|
+
return opt.value == text;
|
2073
|
+
});
|
2074
|
+
if (lbl) text2 = lbl.label;
|
2075
|
+
console.log(text, lbl, text2, options);
|
2076
|
+
}
|
2077
|
+
|
2068
2078
|
return /*#__PURE__*/React__default["default"].createElement(Token, {
|
2069
|
-
text:
|
2079
|
+
text: text2,
|
2070
2080
|
onDelete: function onDelete() {
|
2071
2081
|
return remove(index);
|
2072
2082
|
}
|