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.
@@ -706,14 +706,12 @@ var FormSelectMultiples = /*#__PURE__*/function (_React$Component) {
706
706
  }
707
707
  };
708
708
 
709
- _this.detectClickOutside = function () {
710
- window.addEventListener('mousedown', function (event) {
711
- if (!_this.containerRef.current.contains(event.target)) {
712
- _this.setState({
713
- isDisplay: false
714
- });
715
- }
716
- });
709
+ _this.detectClickOutside = function (event) {
710
+ if (!_this.containerRef.current.contains(event.target)) {
711
+ _this.setState({
712
+ isDisplay: false
713
+ });
714
+ }
717
715
  };
718
716
 
719
717
  _this.state = {
@@ -2101,6 +2099,9 @@ var Sidebar = /*#__PURE__*/function (_React$Component) {
2101
2099
  onClick: function onClick() {
2102
2100
  return _this3.handleDropdownClick(idx);
2103
2101
  },
2102
+ style: element.isRed ? {
2103
+ color: 'var(--red)'
2104
+ } : {},
2104
2105
  className: classNames$1(style$j.sidebar_button_dropdown, (_classNames4 = {}, _classNames4[style$j.active] = !!element.active, _classNames4[style$j.disabled] = !!element.disabled, _classNames4))
2105
2106
  }, element.icon, /*#__PURE__*/React.createElement("span", null, element.name), element.active === true ? /*#__PURE__*/React.createElement(FontAwesomeIcon, {
2106
2107
  icon: faCaretDown