Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow horizontal scrolling inside the Dialog component #2889

Merged
merged 1 commit into from
Dec 20, 2023

Conversation

RobinMalfait
Copy link
Member

This PR fixes an issue where the scroll locking inside a Dialog component was too strict because
horizontally scrolling inside the Dialog wasn't allowed anymore.

This PR fixes that by checking both vertical and horizontal scroll containers (that may or may not
be overflowing already) and only use e.preventDefault() if those do not exist.

Copy link

vercel bot commented Dec 20, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
headlessui-react ❌ Failed (Inspect) Dec 20, 2023 10:45pm
headlessui-vue ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 20, 2023 10:45pm

@RobinMalfait RobinMalfait merged commit 7a1940e into main Dec 20, 2023
7 of 8 checks passed
@RobinMalfait RobinMalfait deleted the fix/allow-horizontal-scroll-in-dialog branch December 20, 2023 22:55
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