ui-kit-ck-consultant 0.5.302 → 0.5.303
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +9 -8
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +9 -8
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -709,14 +709,12 @@ var FormSelectMultiples = /*#__PURE__*/function (_React$Component) {
|
|
709
709
|
}
|
710
710
|
};
|
711
711
|
|
712
|
-
_this.detectClickOutside = function () {
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
}
|
719
|
-
});
|
712
|
+
_this.detectClickOutside = function (event) {
|
713
|
+
if (!_this.containerRef.current.contains(event.target)) {
|
714
|
+
_this.setState({
|
715
|
+
isDisplay: false
|
716
|
+
});
|
717
|
+
}
|
720
718
|
};
|
721
719
|
|
722
720
|
_this.state = {
|
@@ -2104,6 +2102,9 @@ var Sidebar = /*#__PURE__*/function (_React$Component) {
|
|
2104
2102
|
onClick: function onClick() {
|
2105
2103
|
return _this3.handleDropdownClick(idx);
|
2106
2104
|
},
|
2105
|
+
style: element.isRed ? {
|
2106
|
+
color: 'var(--red)'
|
2107
|
+
} : {},
|
2107
2108
|
className: classNames$1(style$j.sidebar_button_dropdown, (_classNames4 = {}, _classNames4[style$j.active] = !!element.active, _classNames4[style$j.disabled] = !!element.disabled, _classNames4))
|
2108
2109
|
}, element.icon, /*#__PURE__*/React__default.createElement("span", null, element.name), element.active === true ? /*#__PURE__*/React__default.createElement(reactFontawesome.FontAwesomeIcon, {
|
2109
2110
|
icon: freeSolidSvgIcons.faCaretDown
|