-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Input Interaction: always reset initial vertical position rect #15624
Conversation
await page.keyboard.type( '2' ); | ||
await page.keyboard.press( 'ArrowUp' ); | ||
await page.keyboard.press( 'ArrowUp' ); | ||
await page.keyboard.type( 'x' ); // Should be right after "1". |
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.
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.
This seems to fix the issue for me.
f11bca3
to
fff3aed
Compare
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.
I'd wonder if there's a different basis (e.g. selection changes) we should be using for determining whether to reset this value other than specific user interactions, which seem more error-prone to try to cover (e.g. selection changes by taps, selections or field values changing programmatically).
In the interim, this seems like the most direct fix to the original issue 👍 In some stress testing, I think it may also help resolve some cases where they may have been buggy even in the original implementation (e.g. accounting for Home or End keys in selection changes).
Description
Alternative to #15607.
How has this been tested?
Screenshots
Types of changes
Checklist: