goldenyz / react-perfect-scrollbar

A react wrapper for perfect-scrollbar
MIT License
482 stars 92 forks source link

The argument of ref is the actual node #74

Closed 4lejandrito closed 5 years ago

4lejandrito commented 5 years ago

If ref is a function React will call it with the actual DOM element and not with a RefObject.

See https://reactjs.org/docs/refs-and-the-dom.html#callback-refs