prevent scrolling when focused

This commit is contained in:
Chewbacca 2023-02-14 13:28:11 -05:00
parent d19f8a267a
commit f068d6280d
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ const DropdownMenuItem = ({ index, item, onClick }: IDropdownMenuItem) => {
const firstItem = index === 0; const firstItem = index === 0;
if (itemRef.current && firstItem) { if (itemRef.current && firstItem) {
itemRef.current.focus(); itemRef.current.focus({ preventScroll: true });
} }
}, [itemRef.current, index]); }, [itemRef.current, index]);