-
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't close location error message while address suggestion dropdown is open #29932
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 |
@@ -59,6 +59,7 @@ function BaseLocationErrorMessage({onClose, onAllowLocationLinkPress, locationEr | |||
<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 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
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