multiselect-react-dropdown icon indicating copy to clipboard operation
multiselect-react-dropdown copied to clipboard

Component has warning when used.

Open bbrink68 opened this issue 4 years ago • 0 comments

I noticed since using this, I have this red warning in my console:

app.js:62720 Warning: Received the string `true` for the boolean attribute `disabled`. Although this works, it will not work as expected if you pass the string "false". Did you mean disabled={true}?

I don't see a way for me to fix this without altering the package itself. The stack trace points here:

function OutsideAlerter(props) {
  var wrapperRef = React.useRef(null);
  useOutsideAlerter(wrapperRef, props.outsideClick);
  return React__default.createElement("div", {
    ref: wrapperRef
  }, props.children);
}

Would it be much trouble to take care of this, or you have any recommendations on how I can squelch this warning myself?

bbrink68 avatar Mar 10 '22 02:03 bbrink68