mirror of
https://github.com/tenrok/OverlayScrollbars.git
synced 2026-06-11 20:42:27 +03:00
improve overlayscrollbars-react and repo setup
This commit is contained in:
@@ -28,7 +28,7 @@ const OverlayScrollbarsComponent = <T extends keyof JSX.IntrinsicElements>(
|
||||
useEffect(() => {
|
||||
const { current: target } = osTargetRef;
|
||||
if (target) {
|
||||
const instance = OverlayScrollbars(target as any, options || {});
|
||||
const instance = OverlayScrollbars(target as any, options || {}, events);
|
||||
osInstanceRef.current = instance;
|
||||
|
||||
return () => instance.destroy();
|
||||
|
||||
Reference in New Issue
Block a user