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.modern.js
CHANGED
@@ -2057,8 +2057,18 @@ var TokenField = function TokenField(_ref) {
|
|
2057
2057
|
return /*#__PURE__*/React.createElement("div", {
|
2058
2058
|
className: "tokenField"
|
2059
2059
|
}, /*#__PURE__*/React.createElement("label", null, label), tks.map(function (text, index) {
|
2060
|
+
var text2 = text;
|
2061
|
+
|
2062
|
+
if (options) {
|
2063
|
+
var lbl = options.find(function (opt) {
|
2064
|
+
return opt.value == text;
|
2065
|
+
});
|
2066
|
+
if (lbl) text2 = lbl.label;
|
2067
|
+
console.log(text, lbl, text2, options);
|
2068
|
+
}
|
2069
|
+
|
2060
2070
|
return /*#__PURE__*/React.createElement(Token, {
|
2061
|
-
text:
|
2071
|
+
text: text2,
|
2062
2072
|
onDelete: function onDelete() {
|
2063
2073
|
return remove(index);
|
2064
2074
|
}
|