-
Notifications
You must be signed in to change notification settings - Fork 3.8k
fix: Fix bug that caused inadvertent scrolling when the WidgetDiv was shown.
#9291
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
Conversation
BenHenning
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @gonfunko! This makes sense. I had a couple of thoughts--PTAL.
BenHenning
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @gonfunko! Approving to unblock, though I did leave one comment just to double check that the test fails as expected.
…as shown. (#9291) * fix: Fix bug that caused inadvertent scrolling when the `WidgetDiv` was shown. * chore: Add test to verify that displaying the context menu does not scroll the page. * chore: Clarify comments. * fix: Remove errant `.only`. * chore: Add test to verify that actively focusing a node does not scroll the page. * fix: Remove inadvertent `.only`.
The basics
The details
Resolves
Fixes #9246
Proposed Changes
This PR updates the
FocusManagerto not automatically scroll focused nodes into view (the default browser behavior). This was causing shifts in the top-level page when theWidgetDivwas shown, and may have caused inadvertent scrolling in other contexts as well.