react-multi-select: Throws warning

I see a warning thrown when using this component. It can be fixed upgrading prop-types to at least 15.5.10

Actual Behavior

checkPropTypes.js?a15c:19 Warning: Failed prop type: Calling PropTypes validators directly is not supported by the prop-types package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types

More info

https://github.com/malte-wessel/react-custom-scrollbars/issues/153#issuecomment-301098921

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 1
  • Comments: 17 (2 by maintainers)

Most upvoted comments

I’ve created an issue on react-height to create a new release : react-height #38

Hi @BaptWaels, We investigated the issue and it seems related to react-height. It’s currently low on our priorities because it’s only a warning and doesn’t break the component. I hope we can get to it as soon as possible but I also encourage trying to issue a fix to this if you have the capacity for it.

Hi,

Any update on this issue ? I’m experiencing the same behaviour.

@talyak looks like this is happening because of react-height we are using for responsiveness support.

https://github.com/kenshoo/react-multi-select/pull/145 should solve the issue as we removed react-height dependency from the component.

Looked into the issue a little. A PR was approved which supposedly fixed the issue. On April 17th 2018 and a tag was pushed, 3.0.0. https://github.com/nkbt/react-height/pull/37

The npm page says the package has not been updated for 2 years but the release tag is listed the releases.

Not sure wha’ts going on, but this package has the correctly react-height version (3.0.0), and a version of prop-types which should fix the issue.

¯_(ツ)_/¯