You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2024-01-02] [$500] Web - Search - Selected dropdown item with tab key is not opened in Search #32388
Version Number: 1.4.7-0 Reproducible in staging?: Y Reproducible in production?: Y If this was caught during regression testing, add the test name, ID and link from TestRail: Email or phone of affected tester (no customers): Logs:https://stackoverflow.com/c/expensify/questions/4856 Expensify/Expensify Issue URL: Issue reported by: Applause - Internal Team Slack conversation:
Action Performed:
Login to ND Expensify
Press CTRL+K or click Magnifying glass icon
Select any dropdown item with Tab key
Press Enter key
Expected Result:
Items in search dropdown should be selected consistently both with up&down and tab keys, and the correct one is opened after pressing Enter key
Actual Result:
Highlighted item (default first one) with Up&Down keys is opened instead of blue bordered item which is selected with Tab key
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
changed the title [-]Web - Search - Selected dropdown item with tab key is not opened in Search[/-][+][$500] Web - Search - Selected dropdown item with tab key is not opened in Search[/+]on Dec 1, 2023
Please re-state the problem that we are trying to solve in this issue.
Highlighted item (default first one) with Up&Down keys is opened instead of blue bordered item which is selected with Tab key
What is the root cause of that problem?
The root cause is that the pressOnEnter is set on Confirm button and it's priority is 1 so when we click enter, the button is pressed first with highlighted item.
Based on my observation, our PR didn't directly cause this regression, the regression didn't occur after merging our PR. However our solution was based on faulty approach which was already implemented by #32252. We took this solution for granted and followed the same approach. Finally #33491 PR caused the regression which broke our faulty solution. I am okay if penalty is applied to my payment, since I should have been more cautious on my review.
While the PR for this issue and this one were a bit iffy & weren't perfect, they didn't cause the regressions so I don't believe payment here should have the penalty applied
Activity
[-]Web - Search - Selected dropdown item with tab key is not opened in Search[/-][+][$500] Web - Search - Selected dropdown item with tab key is not opened in Search[/+]melvin-bot commentedon Dec 1, 2023
Job added to Upwork: https://www.upwork.com/jobs/~015640f29df912d30c
melvin-bot commentedon Dec 1, 2023
Triggered auto assignment to @alexpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Dec 1, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)melvin-bot commentedon Dec 1, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @alitoshmatov (
External)unidev727 commentedon Dec 1, 2023
Proposal
from: @unicorndev-727
Please re-state the problem that we are trying to solve in this issue.
Highlighted item (default first one) with Up&Down keys is opened instead of blue bordered item which is selected with Tab key
What is the root cause of that problem?
The root cause is that the pressOnEnter is set on Confirm button and it's priority is 1 so when we click enter, the button is pressed first with highlighted item.
App/src/components/OptionsSelector/BaseOptionsSelector.js
Lines 656 to 662 in 414c08c
What changes do you think we should make in order to solve the problem?
we need to adjust button's priority here or can change the default item when we select other item using tab.
What alternative solutions did you explore? (Optional)
N/A
DylanDylann commentedon Dec 2, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
App/src/components/OptionsSelector/BaseOptionsSelector.js
Lines 302 to 325 in 1682be4
What changes do you think we should make in order to solve the problem?
focusedOption:App/src/components/OptionsSelector/BaseOptionsSelector.js
Line 303 in 1682be4
this.state.focusedIndex, so if there is another option is select by tab key, we will not consider it.keyForListto OptionRow. It will become to:keyForListprops to PressableWithFeedbackIt will become to:
focusedOptionin here:App/src/components/OptionsSelector/BaseOptionsSelector.js
Line 303 in 1682be4
It will become to:
What alternative solutions did you explore? (Optional)
alexpensify commentedon Dec 4, 2023
@alitoshmatov please keep us posted if any of the proposals will fix this issue. Thanks!
42 remaining items
alexpensify commentedon Jan 3, 2024
@alitoshmatov or @deetergp - can you please help confirm if this PR did cause regression? Thanks!
alitoshmatov commentedon Jan 4, 2024
Based on my observation, our PR didn't directly cause this regression, the regression didn't occur after merging our PR. However our solution was based on faulty approach which was already implemented by #32252. We took this solution for granted and followed the same approach. Finally #33491 PR caused the regression which broke our faulty solution. I am okay if penalty is applied to my payment, since I should have been more cautious on my review.
cc: @alexpensify, @deetergp, @Beamanator (since you worked on fixing the regression)
alexpensify commentedon Jan 5, 2024
Thank you @alitoshmatov for this update. @Beamanator and @deetergp can I get some feedback here regarding this payment? Thanks!
melvin-bot commentedon Jan 8, 2024
@deetergp, @alexpensify, @alitoshmatov, @DylanDylann Whoops! This issue is 2 days overdue. Let's get this updated quick!
alexpensify commentedon Jan 8, 2024
Bumping - @deetergp and @Beamanator can I get your feedback here?
Beamanator commentedon Jan 10, 2024
I agree with @alitoshmatov 's summary here: #32388 (comment)
While the PR for this issue and this one were a bit iffy & weren't perfect, they didn't cause the regressions so I don't believe payment here should have the penalty applied
alexpensify commentedon Jan 11, 2024
Thanks, I'll work on the payment process tomorrow.
alexpensify commentedon Jan 11, 2024
Closing - I updated the summary here: #32388 (comment)
Everyone has been paid via Upwork and I closed that job.