Skip to content

Commit

Permalink
fix: Disable cross-frame focus lock
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelgrimm committed Aug 30, 2024
1 parent e194265 commit f292977
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/modal/modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,12 @@ export function Modal({
onPointerDown={hideOnInteractOutside ? handleBackdropClick : undefined}
ref={backdropRef}
>
<FocusLock autoFocus={autoFocus} whiteList={isNotInternalFrame} returnFocus={true}>
<FocusLock
autoFocus={autoFocus}
whiteList={isNotInternalFrame}
returnFocus={true}
crossFrame={false}
>
<Dialog
{...props}
ref={dialogRef}
Expand Down

0 comments on commit f292977

Please sign in to comment.