-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Fix can't close location error message while address suggestion dropdown is open #29932
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't close location error message while address suggestion dropdown is open #29932
Conversation
Reviewer Checklist
Screenshots/VideosWeb29932-web.mp4Mobile Web - Chrome29932-mobile-chrome.mp4Mobile Web - Safari29932-mobile-safari.mp4Desktop29932-desktop.mp4iOS29932-mobile-ios.mp4Android29932-mobile-android.mp4 |
| <Tooltip text={translate('common.close')}> | ||
| <PressableWithoutFeedback | ||
| onPress={onClose} | ||
| onMouseDown={(e) => e.preventDefault()} |
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.
It would be better if we can add a brief comment. : )
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.
I think it's a pretty common pattern found in the codebase and some of them already have the comment, so I didn't add it on purpose. Do you think we should still add it here?
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.
I don't have a strong opinion either, just feel that if there are better UI optimizations for this component in the future, this can be deleted without hesitation. Also, let's wait a few more hours. If @neil-marcellini doesn't have other thoughts, I'll fill the list. : )
|
Hey, @neil-marcellini, I saw your comment here about the close button. On the web, blurring the address input & hiding the dropdown list causes the error message layout shift, which results in its press event not being triggered properly. We are fixing it with |
|
@tylerkaraszewski, friendly bump for the review. : ) |
|
✋ 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/tylerkaraszewski in version: 1.3.90-0 🚀
|
|
🚀 Deployed to production by https://github.com/marcaaron in version: 1.3.90-2 🚀
|
|
🚀 Deployed to staging by https://github.com/tylerkaraszewski in version: 1.3.91-0 🚀
|
|
🚀 Deployed to production by https://github.com/marcaaron in version: 1.3.91-8 🚀
|
Details
We can't close the location error message while the address suggestion dropdown is open.
Fixed Issues
$ #29433
PROPOSAL: #29433 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Screen.Recording.2023-10-19.at.11.21.56.mov
Android: mWeb Chrome
Screen.Recording.2023-10-19.at.11.19.04.mov
iOS: Native
Screen.Recording.2023-10-19.at.11.21.10.mov
iOS: mWeb Safari
Screen.Recording.2023-10-19.at.11.20.32.mov
MacOS: Chrome / Safari
Screen.Recording.2023-10-19.at.11.16.42.mov
MacOS: Desktop
Screen.Recording.2023-10-19.at.11.17.30.mov