Skip to content

Deaktiver Escape-lukking når UNSAFE_Modal ikke er dismissable#1791

Open
oscarcarlstrom wants to merge 1 commit into
mainfrom
fix/modal-escape-dismiss
Open

Deaktiver Escape-lukking når UNSAFE_Modal ikke er dismissable#1791
oscarcarlstrom wants to merge 1 commit into
mainfrom
fix/modal-escape-dismiss

Conversation

@oscarcarlstrom
Copy link
Copy Markdown
Contributor

Oppsummering

Oppfølger til #1790. UNSAFE_Modal lukket fortsatt med Escape selv når isDismissable={false}, fordi react-aria-components har en egen isKeyboardDismissDisabled-prop for tastatur-dismissal. Setter den nå basert på isDismissable slik at både klikk-utenfor og Escape deaktiveres samtidig — i tråd med hva prop-navnet tilsier.

Endringer


🤖 Generert med Claude Code, kvalitetssikret av Oscar Carlström (kan være manuelt redigert).

Sets isKeyboardDismissDisabled={!isDismissable} on the underlying
RACModalOverlay so isDismissable={false} consistently disables both
outside-click and Escape. Same fix as the new UNSAFE_Drawer applies.

Co-Authored-By: Claude <noreply@anthropic.com>
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 22, 2026

🦋 Changeset detected

Latest commit: 3e6d9fe

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@obosbbl/grunnmuren-react Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@oscarcarlstrom oscarcarlstrom marked this pull request as ready for review May 22, 2026 14:02
@oscarcarlstrom oscarcarlstrom requested a review from a team as a code owner May 22, 2026 14:02
@oscarcarlstrom oscarcarlstrom mentioned this pull request May 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant