Skip to content

fix: prevent scroll on document to keep sticky elements - #107

Merged
GiyoMoon merged 2 commits into
corvudev:mainfrom
jer3m01:fix/scroll
Jul 31, 2026
Merged

GiyoMoon merged 2 commits into
corvudev:mainfrom
jer3m01:fix/scroll

Conversation

@jer3m01

@jer3m01 jer3m01 commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Fixes layout shifts from sticky elements in prevent scroll.

Original report kobaltedev/kobalte#698.

Moves hidden overflow from body to documentElement, same as react-aria.

Tested working without breaking changes in Firefox 152.0.6 W11 and Edge 150.0.4078.83 W11.

@GiyoMoon

Copy link
Copy Markdown
Member

thank you!

@GiyoMoon
GiyoMoon merged commit 81354d8 into corvudev:main Jul 31, 2026
2 checks passed
@github-actions github-actions Bot mentioned this pull request Jul 31, 2026

This branch was successfully deployed

1 active deployment
Preview — cbdddabb Deployed Jul 31, 2026 by vercel[bot]
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.

2 participants