Closed piyonishi closed 4 years ago
this._scrollRef.scrollTop = 0;
If the code is readme, it will not work.
this._scrollRef._container.scrollTop = 0;
It works if you replace the code as above.
+1 - Same issue here
Use the containerRef to set the property. Refer to https://github.com/goldenyz/react-perfect-scrollbar#containerref for more details
If the code is readme, it will not work.
It works if you replace the code as above.