nghiepdev / smooth-scrollbar-react

A wrapper for smooth-scrollbar to React Component.
https://codesandbox.io/s/smooth-scrollbar-react-4pu86
MIT License
40 stars 5 forks source link

[FIX] ref remains null #19

Open vria opened 11 months ago

vria commented 11 months ago

Hi, the problem I faced was that "ref" object always remained "null" and never got a value. Here is a fix.

nghiepdev commented 11 months ago

Can you share the codesandbox you are currently encountering?