-
Notifications
You must be signed in to change notification settings - Fork 83
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
fix: do not scroll when clicking cells #7717
Conversation
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.
Removing the __scrollIntoViewport
call in scroll mixin didn't cause any test failures, so I also added some general cases where scrolling a row into view would be expected.
For clicking I also added a separate test for the details cell, since the linked issue was about clicking the details cell specifically. With the current implementation it doesn't make a difference which cell in a row you click, but can't hurt to have more test cases I guess.
Quality Gate passedIssues Measures |
This ticket/PR has been released with Vaadin 24.5.0.alpha13 and is also targeting the upcoming stable 24.5.0 version. |
Prevents scrolling when focusing a cell via click by:
focus({ preventScroll: true })
to avoid automatic scrolling by the browserFixes #7684