diff --git a/src/Drawer.tsx b/src/Drawer.tsx index 2d92697..a87985f 100644 --- a/src/Drawer.tsx +++ b/src/Drawer.tsx @@ -70,7 +70,7 @@ const Drawer: React.FC = props => { lastActiveRef.current && !panelRef.current?.contains(lastActiveRef.current) ) { - lastActiveRef.current?.focus(); + lastActiveRef.current?.focus({ preventScroll: true }); } };