-
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: Send button does not response #43976
Conversation
@hoangzinh 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] |
@truph01 to make test steps more explicitly, I think we can divide into 2 cases On Web/Desktop
On mweb/native
|
@@ -22,7 +23,7 @@ function SendButton({isDisabled: isDisabledProp, handleSendMessage}: SendButtonP | |||
const theme = useTheme(); | |||
const styles = useThemeStyles(); | |||
const {translate} = useLocalize(); | |||
|
|||
const {isSmallScreenWidth} = useWindowDimensions(); |
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.
const {isSmallScreenWidth} = useWindowDimensions(); | |
const {isSmallScreenWidth} = useResponsiveLayout(); |
Please use isSmallScreenWidth from useResponsiveLayout
<GestureDetector | ||
// A new GestureDetector instance must be created when switching from a large screen to a small screen | ||
// if not, the GestureDetector may not function correctly. | ||
key={`${isSmallScreenWidth ? 0 : 1}`} |
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.
Is it better if we name the key? send-button-${isSmallScreenWidth ? 'small-screen' : 'normal-screen'}
@hoangzinh I fixed all your comments above |
All goods. How about testing steps? |
@hoangzinh I updated it |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-06-20.at.08.45.51.android.movAndroid: mWeb ChromeScreen.Recording.2024-06-20.at.08.43.10.android.chrome.moviOS: NativeScreen.Recording.2024-06-20.at.08.46.43.ios.moviOS: mWeb SafariScreen.Recording.2024-06-20.at.08.47.48.ios.safari.movMacOS: Chrome / SafariScreen.Recording.2024-06-20.at.06.39.29.web.movMacOS: DesktopScreen.Recording.2024-06-20.at.08.40.40.desktop.mov |
✋ 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/luacmartins in version: 9.0.1-0 🚀
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.0.1-19 🚀
|
Details
Fixed Issues
$ #43650
PROPOSAL: #43650 (comment)
Tests
On Web/Desktop
On mweb/native
Offline tests
QA Steps
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-06-19.at.11.56.35.mov
Android: mWeb Chrome
Screen.Recording.2024-06-19.at.11.59.10.mov
iOS: Native
Screen.Recording.2024-06-19.at.11.57.28.mov
iOS: mWeb Safari
Screen.Recording.2024-06-19.at.11.58.33.mov
MacOS: Chrome / Safari
Screen.Recording.2024-06-19.at.11.52.38.mov
MacOS: Desktop
Screen.Recording.2024-06-19.at.11.53.39.mov