Skip to content

Commit

Permalink
fix: Disable cross-frame focus lock (#840)
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelgrimm authored Aug 30, 2024
1 parent e194265 commit e2e97b4
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

Reactist follows [semantic versioning](https://semver.org/) and doesn't introduce breaking changes (API-wise) in minor or patch releases. However, the appearance of a component might change in a minor or patch release so keep an eye on redesigns and make sure your app still looks and feels like you expect it.

# v25.1.1

- [Fix] Restrict focus locking in the `Modal` component to its containing document/iframe.

# v25.1.0

- [Feat] Add `xsmall` size to the `Modal` component
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"email": "[email protected]",
"url": "http://doist.com"
},
"version": "25.1.0",
"version": "25.1.1",
"license": "MIT",
"homepage": "https://github.com/Doist/reactist#readme",
"repository": {
Expand Down
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 e2e97b4

Please sign in to comment.