React-custom-scrollbars: Correct work with React 15.2.0

Created on 2 Jul 2016  路  5Comments  路  Source: malte-wessel/react-custom-scrollbars

In new version React throw warnings if you try to add unknow props for in DOM Element. (https://github.com/facebook/react/releases/tag/v15.2.0)

If I pass https://github.com/facebook/react/releases/tag/v15.2.0 property for example, I had this React warning:

warning.js:44 Warning: Unknown prop `hideTracksWhenNotNeeded` on <div> tag. Remove this prop from the element. For details, see https://fb.me/react-unknown-prop
    in div (created by Scrollbars)
enhancement

Most helpful comment

Thx for reporting! Fixing this should be easy. I'm currently busy, but I think I'll release a new version next week with this issue fixed.

All 5 comments

I use this plugin in the sidebar of my project and then the warning appears on every page of my site! help!!! In my opinion it's easy to fix, just check the props passed to the component and then apply only those legal properties to the DOM element. Hope author fix this and I will appreciate your work very much!

Thx for reporting! Fixing this should be easy. I'm currently busy, but I think I'll release a new version next week with this issue fixed.

Looks like if someone uses ShadowScrollbars example 'onUpdate' prop also needs to be definited.

index.js:8624 Warning: Unknown prop onUpdate on <div> tag. Remove this prop from the element. For details, see https://fb.me/react-unknown-prop

Hey @malte-wessel, do you need any help to release the v4?

Nice job @malte-wessel! Thanks a lot! :heart: :dancer: :sparkles:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

limbosounds picture limbosounds  路  4Comments

luxotus picture luxotus  路  4Comments

leofle picture leofle  路  4Comments

anupmishra203 picture anupmishra203  路  3Comments

bunkat picture bunkat  路  5Comments