Skip to content

Commit

Permalink
[@mantine/hooks] use-focus-trap: Fix scrolling of animated elements (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
hotgen committed Sep 8, 2022
1 parent e6890a9 commit 56d9c6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mantine-hooks/src/use-focus-trap/use-focus-trap.ts
Expand Up @@ -30,7 +30,7 @@ export function useFocusTrap(active = true): (instance: HTMLElement | null) => v
}

if (focusElement) {
focusElement.focus();
focusElement.focus({ preventScroll: true });
} else if (process.env.NODE_ENV === 'development') {
// eslint-disable-next-line no-console
console.warn(
Expand Down

0 comments on commit 56d9c6a

Please sign in to comment.