improve overlayscrollbars-react and repo setup

This commit is contained in:
Rene Haas
2022-10-28 22:04:44 +02:00
parent 373bc03824
commit 568d5cfcd6
13 changed files with 99 additions and 24 deletions
@@ -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();