-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[HOLD for payment 2022-08-30] [$250] Unable to move cursor (left/right) in searchbar - Reported by @daraksha-dk #10182
Comments
Triggered auto assignment to @NicMendonca ( |
Triggered auto assignment to @pecanoro ( |
I was able to reproduce it, it works fine when typing a message but it's kind of broken in the emoji picker. I also noticed that moving up in the emoji picker is broken when the cursor goes out of sight. |
Triggered auto assignment to @dylanexpensify ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat ( |
Triggered auto assignment to @neil-marcellini ( |
Proposal
This happens because of this line when any arrow key is pressed. To make left, right arrows work as default behavior in input box, this line should be removed. Also I think default behavior is more user friendly than switching highlight to emoji when right arrow pressed, even though cursor is at the end of input text. Down arrow key is already doing this. Solution
move.cursor.mov |
Proposal
The bug occurs because of keyBoardEvent.preventDefault(); which disable keyobard key default behaviour on the input field in search box when arrow keys on keyboard are pressed. Solution if (!this.searchInput.isFocused){ Screen.Recording.2022-08-03.at.2.56.51.PM.mov |
ProposalWe will check if the search input is focused and ArrowLeft or ArrowRight pressed then return from keyDownHandler and do nothing
+if (this.searchInput && this.searchInput.isFocused() && _.contains(['ArrowLeft', 'ArrowRight'], keyBoardEvent.key)) {
+ return;
+} 10182-unable-to-move-cursor.mov |
This sounds like a regression to me. Checking... |
That proposal looks good to me too! The only tiny thing I would change is updating the condition to avoid negations. I think it's more clear like so. @errahsoufiane Please put up a PR and we will give it a review. |
📣 @errahsoufiane You have been assigned to this job by @neil-marcellini! |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a production regression has occurred a Root Cause Analysis is required. Please follow the instructions here. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
The PR has been merged, what's the status on payment? |
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.1.88-15 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2022-08-30. 🎊 |
We need applications to the job FYI! |
@vladnyk @parasharrajat any updates here on applying for the job? |
I am having trouble applying. Could you please send an invitation? |
Sure can! |
@parasharrajat sent! |
@parasharrajat, @neil-marcellini, @dylanexpensify, @vladnyk Whoops! This issue is 2 days overdue. Let's get this updated quick! |
not overdue |
@parasharrajat @daraksha-dk sent offers! |
payments sent, post closed! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
User should be able to move the cursor left or right when focused
Actual Result:
User unable to move the cursor left or right when focused
Workaround:
unknown
Platform:
Where is this issue occurring?
Version Number: 1.1.86-2
![image - 2022-08-02T003648 493](https://user-images.githubusercontent.com/43995119/182292890-79be6466-db24-4df2-bd6f-ee8105ee0b5a.png)
Reproducible in staging?: Y
Reproducible in production?: Y
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Expensify/Expensify Issue URL:
Issue reported by: @daraksha-dk
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1657462486325009
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: