@pinnacle0/web-ui 0.3.53 → 0.3.54
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/core/Tags.js +2 -1
- package/core/Tags.js.map +1 -1
- package/package.json +1 -1
package/core/Tags.js
CHANGED
|
@@ -23,7 +23,8 @@ var Tags = /** @class */ (function (_super) {
|
|
|
23
23
|
_this.renderTag = function (item, index) {
|
|
24
24
|
var _a = _this.props, color = _a.color, onClose = _a.onClose;
|
|
25
25
|
var tagColor = typeof color === "function" ? color(item, index) : color;
|
|
26
|
-
|
|
26
|
+
// we need to pass the visible property explicitly to avoid unexpected behavior when the tag is close
|
|
27
|
+
return (React.createElement(Tag, { color: tagColor, key: index, style: _this.singleTagStyle, closable: onClose !== undefined, onClose: function () { return onClose === null || onClose === void 0 ? void 0 : onClose(index); }, visible: true }, item));
|
|
27
28
|
};
|
|
28
29
|
return _this;
|
|
29
30
|
}
|
package/core/Tags.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tags.js","sourceRoot":"","sources":["../../src/core/Tags.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,GAAG,EAAC,MAAM,OAAO,CAAC;AAY1B;IAA0B,wBAA0B;IAApD;QAAA,
|
|
1
|
+
{"version":3,"file":"Tags.js","sourceRoot":"","sources":["../../src/core/Tags.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,GAAG,EAAC,MAAM,OAAO,CAAC;AAY1B;IAA0B,wBAA0B;IAApD;QAAA,qEAoBC;QAjBoB,oBAAc,GAAwB,EAAC,WAAW,EAAE,CAAC,EAAE,YAAY,EAAE,CAAC,EAAC,CAAC;QAEzF,eAAS,GAAG,UAAC,IAAsB,EAAE,KAAa;YACxC,IAAA,KAAmB,KAAI,CA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