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

Prevent the page from scrolling when closing a dialog #1421

Merged
merged 1 commit into from
Aug 15, 2023
Merged

Conversation

falkoschindler
Copy link
Contributor

@falkoschindler falkoschindler commented Aug 15, 2023

This PR monkey-patches the ui.dialog.on_value_change to disable smooth scrolling while the dialog is open. This solves #1404, i.e. the page scrolling whenever a dialog is closed.

While working at this I noticed that the media restriction to min. 1024px for smooth scrolling is no longer required. It works well, even on small screens and when the menu is used for navigation. (There was a comment in the code indicating a problem with smooth scrolling in combination with the menu.)

@falkoschindler falkoschindler linked an issue Aug 15, 2023 that may be closed by this pull request
@falkoschindler falkoschindler added this to the 1.3.10 milestone Aug 15, 2023
@falkoschindler falkoschindler added the bug Something isn't working label Aug 15, 2023
@falkoschindler falkoschindler self-assigned this Aug 15, 2023
@rodja rodja merged commit 128d6b2 into main Aug 15, 2023
6 checks passed
@rodja rodja deleted the dialog-scroll branch August 15, 2023 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Documentation page scrolls when closing a dialog
2 participants