-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 can not focus on the main composer after going back from thread #38978
Conversation
@dukenv0307 Please 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] |
Code looks good, will review in a few hours |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeweb-resize.mp4Android: mWeb ChromeScreen.Recording.2024-03-26.at.15.19.13.moviOS: Nativeweb-resize.mp4iOS: mWeb SafariScreen.Recording.2024-03-26.at.15.15.08.movMacOS: Chrome / SafariScreen.Recording.2024-03-26.at.15.08.57.movMacOS: Desktopweb-resize.mp4 |
@nkdengineer Can you pls update the test in case of small screen?
|
@dukenv0307 I updated. |
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.
One small request
@@ -653,6 +653,8 @@ function ComposerWithSuggestions( | |||
const unsubscribeNavigationBlur = navigation.addListener('blur', () => KeyDownListener.removeKeyDownPressListener(focusComposerOnKeyPress)); | |||
const unsubscribeNavigationFocus = navigation.addListener('focus', () => { | |||
KeyDownListener.addKeyDownPressListener(focusComposerOnKeyPress); | |||
// @ts-expect-error need to reassign this ref |
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.
Can you update this comment to explain why the ref needs to be re-assigned?
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.
@NikkiWines I updated.
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.
👍 (aside from lint errors)
@NikkiWines I updated. |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/NikkiWines in version: 1.4.58-0 🚀
|
🚀 Deployed to production by https://github.com/Beamanator in version: 1.4.58-8 🚀
|
Details
Fix can not focus on the main composer after going back from thread
Fixed Issues
$ #38700
PROPOSAL: #38700 (comment)
Tests
Reply in thread
Edit message
Offline tests
Same as above
QA Steps
Reply in thread
Edit message
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.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
Android: Native
Screen.Recording.2024-03-26.at.11.14.53.mov
Android: mWeb Chrome
Screen.Recording.2024-03-26.at.11.04.21.mov
iOS: Native
Screen.Recording.2024-03-26.at.11.16.53.mov
iOS: mWeb Safari
Screen.Recording.2024-03-26.at.11.08.16.mov
MacOS: Chrome / Safari
Screen.Recording.2024-03-26.at.11.02.20.mov
MacOS: Desktop
Screen.Recording.2024-03-26.at.11.18.24.mov