-
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: expand and collapse tooltip not dissmissed #56637
fix: expand and collapse tooltip not dissmissed #56637
Conversation
Hmm. The test failed in GroupChatNameTests, but this PR is not related to that. I noticed a similar issue in other PRs. |
Reviewer Checklist
Screenshots/VideosMacOS: Chrome / Safari56637-web-safari-001.mp4MacOS: Desktop56637-desktop-001.mp4Android: Native56637-android-native-001.mp4Android: mWeb Chrome56637-mweb-chrome-001.mp4iOS: Native56637-ios-native-001.mp4iOS: mWeb Safari56637-mweb-safari-001.mp4 |
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.
@linhvovan29546 Thanks for the PR.
Unit test failure does not happen to me locally. Looks like some other PR caused this.
Otherwise, changes LGTM and works well too.
@luacmartins Over to you for review. Thanks.
✋ 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.97-0 🚀
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.0.97-1 🚀
|
Explanation of Change
The tooltip does not unmount when switching between expand and collapse, causing it to remain open and not dismiss properly. To fix this, we should ensure each tooltip is treated as a distinct element by adding a unique key
Fixed Issues
$ #56037
PROPOSAL: #56037 (comment)
Tests
Offline tests
Same test as above
QA Steps
Same test as above
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)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
The tooltip only appear on web and desktop
Android: mWeb Chrome
The tooltip only appear on web and desktop
iOS: Native
The tooltip only appear on web and desktop
iOS: mWeb Safari
The tooltip only appear on web and desktop
MacOS: Chrome / Safari
Screen.Recording.2025-02-11.at.11.17.48.AM.mov
Screen.Recording.2025-02-11.at.11.19.49.AM.mov
MacOS: Desktop
Screen.Recording.2025-02-11.at.11.55.48.AM.mov