We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4472f7 commit 962dfc4Copy full SHA for 962dfc4
src/Drawer.tsx
@@ -70,7 +70,7 @@ const Drawer: React.FC<DrawerProps> = props => {
70
lastActiveRef.current &&
71
!panelRef.current?.contains(lastActiveRef.current)
72
) {
73
- lastActiveRef.current?.focus();
+ lastActiveRef.current?.focus({ preventScroll: true });
74
}
75
};
76
0 commit comments