Skip to content

fix(OnyxBasicDialog, OnyxModal): Fix OnyxModal closing on scrollbar click#5586

Draft
JoCa96 wants to merge 5 commits into
mainfrom
joca96/5585-fix-onyx-modal-close-scrollbar-click
Draft

fix(OnyxBasicDialog, OnyxModal): Fix OnyxModal closing on scrollbar click#5586
JoCa96 wants to merge 5 commits into
mainfrom
joca96/5585-fix-onyx-modal-close-scrollbar-click

Conversation

@JoCa96

@JoCa96 JoCa96 commented May 29, 2026

Copy link
Copy Markdown
Collaborator

Closes #5585

Cause: The scrollbar belongs to the dialog element. For layout reasons only the .onyx-basic-dialog__content element is considered inside when determining an outside click. So clicking the scrollbar triggered an outside click.

Fix: Move overflow handling and scrollbars to the content element.

@JoCa96 JoCa96 requested a review from a team as a code owner May 29, 2026 14:12
@changeset-bot

changeset-bot Bot commented May 29, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: d4631f1

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

This PR includes changesets to release 1 package
Name Type
sit-onyx 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

@JoCa96 JoCa96 marked this pull request as draft May 29, 2026 14:18
@JoCa96 JoCa96 force-pushed the joca96/5585-fix-onyx-modal-close-scrollbar-click branch 2 times, most recently from 4821fc9 to 2035239 Compare June 1, 2026 08:20
@JoCa96 JoCa96 force-pushed the joca96/5585-fix-onyx-modal-close-scrollbar-click branch from 0f9cae6 to d4631f1 Compare June 2, 2026 12:16
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.

Fix OnyxModal closing on scrollbar click

1 participant