-
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
fix arrow focus priority when multiple arrow listeners are subscribed #18578
Conversation
@Beamanator @mananjadhav One of you needs to copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
@azimgd thanks for the quick fix! However we want to make sure this doesn't break the other related PRs:
So can you make sure to test that those still work, and add the tests from those PRs here? 🙏 |
@mollfpr tagging you in as C+ since I know you're available now & we want to get this deploy blocker fixed quick 👍 |
|
"Tests" section was updated to include suite from 3 linked issues / pr's. |
@azimgd I found another issue related to Step:
It's not selecting the option. Screen.Recording.2023-05-08.at.21.00.33.mov |
@mollfpr could you have a look again please. |
It's fixing the previous issue and the OP issue, but I'm able to use the arrow key in the new group chat page and can't close the keyboard shortcut modal after refreshing the page. Screen.Recording.2023-05-08.at.21.15.36.mov |
That only happens if you refresh the page, correct? |
@azimgd Correct! |
@Beamanator I'm out of time, and got to go for today. It seems like this is the only issue left:
The reason this is happening is because I suggest that we don't persist the state of visibility for Let me know what do you think. |
@azimgd Thanks for getting us this far & good ideas where to look next 👍 I have noticed that I'm not able to reproduce the bug when the keyboard shortcuts menu is showing over the "Search" page, but I AM able to reproduce when opening the keyboard shortcuts over the "group" chat & "individual" chat pages |
This makes the most sense to me, but I'll try to check in with people who implemented that |
Removing that state from Onyx makes sense to me. I don't know why we would like to keep it open if the user refresh the page. @roryabraham , do you know why we put the state |
Agreed @aldo-expensify 👍 asked in slack |
Boom we're in agreement that the modal's visibility doesn't need to persist 💪 |
Details
Fixes keyboard arrow navigation in the list if open "new chat". Keyboard arrow listeners priority was reset to highest value.
Key priority was initially lowered (to 1), to disable arrow up / down events from triggering when KeyboardShortcutsModal is open. #18425 has updated event subscription approach to event lifecycle hence we need to reset it back to highest priority when new modal is opened.
Fixed Issues
$ #18516
PROPOSAL: #18516
Tests
Offline tests
Same as tests.
QA Steps
Same as tests.
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android