-
Notifications
You must be signed in to change notification settings - Fork 202
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
Send SELECT_SEARCH_RESULT event only on left-mouse clicks #3472
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.
Thank you for great work, @aneevel! Could you revert the changes to pnpm-lock.yaml
? Are you using a different version of pnpm than what is used in this repository? We are still on v.7, and the current version is 8. This might have caused the unnecessary changes.
This reverts commit aba8ff1.
Thanks for the help @obulat - I've reverted |
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.
Based on the medium urgency of this PR, the following reviewers are being gently reminded to review this PR: @dhruvkb Excluding weekend1 days, this PR was ready for review 8 day(s) ago. PRs labelled with medium urgency are expected to be reviewed within 4 weekday(s)2. @aneevel, if this PR is not ready for a review, please draft it to prevent reviewers from getting further unnecessary pings. Footnotes
|
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.
We should try to get this merged, even without the Playwright test, before the frontend code freeze. @aneevel if you've been working on it (and can still add the test), let us know.
Good point, Dhruv. Let's merge this now, then. If there's work on a playright test it can be in a separate PR anyway, right? |
Here's an issue to follow up on the unit test: #3555 |
Fixes
Fixes #2551 by @obulat
Description
When sending a SELECT_SEARCH_RESULT event, there is now a check that the event was performed with the primary mouse button (typically left-mouse click) before propagating the event
Testing Instructions
Run the app, and search for anything. Click on any search result with the primary mouse button and check the console; you will see a SELECT_SEARCH_RESULT logged in the console. Click on any search result with a button other than primary and check the console; you will not see an event logged to the console.
Checklist
Update index.md
).main
) or a parent feature branch.Developer Certificate of Origin
Developer Certificate of Origin