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

Stop scrolling body when element selector is open #16768

Open
wants to merge 3 commits into
base: 4.15
Choose a base branch
from

Conversation

brianjhanson
Copy link
Contributor

@brianjhanson brianjhanson commented Feb 24, 2025

Mimics the no-scroll behavior of slideouts for element selector modals

Related issues

Fixes #16759

@brandonkelly
Copy link
Member

Does the issue only affect element selector modals? I assume the changes should be made on Garnish.Modal and Craft.Slideout.

@brianjhanson
Copy link
Contributor Author

Yeah, I think you're right. I was nervous about changing it too broadly, but I don't see anywhere we're using Garnish.Modal where we don't want to lock the body.

As for Slideout, that already has code to manage the no-scroll.

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