-
Notifications
You must be signed in to change notification settings - Fork 3.2k
When hovering over the actionable option wrong option is selected #55350
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
When hovering over the actionable option wrong option is selected #55350
Conversation
@jayeshmangwani 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] |
@rinej Thanks for the PR. |
…ng-option-is-selected
Reviewer Checklist
Screenshots/VideosAndroid: NativeMacOS: Chrome / Safariweb-chrome.movweb-safari.movMacOS: Desktopdesktop.mov |
There were some changes on main regarding eslint, after merging it back it is fixed. |
Thank you for making the changes; changes works well on Safari! |
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.
LGTM 🚀
We did not find an internal engineer to review this PR, trying to assign a random engineer to #54520 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
Thanks @jayeshmangwani! |
…ng-option-is-selected
@youssef-lr Tagging you here for review, as Melvin assigned you to the issue but failed to request your review. |
@rinej can you please merge main again to resolve the conflicts? |
We have conflicts @rinej |
I'm going OOO Monday, please ask for review from someone else when this is done 🙏🏼 |
@rinej Please merge the main branch to resolve conflicts. Then, we can ask an internal engineer to merge this PR. |
…ng-option-is-selected
@jayeshmangwani I just merged the main |
@jayeshmangwani do we have any update about the reviewer? |
We didn’t get any volunteers for the review, but @youssef-lr is back from OOO today, so hopefully, they can merge it. |
✋ 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/youssef-lr in version: 9.1.0-0 🚀
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.1.0-2 🚀
|
Explanation of Change
Problem
When hovering over the actionable "Whisper" option of a track expense, the wrong option is highlighted, or the field does not get highlighted at all. This issue occurs only in the Safari browser.
Solution
This behaviour may be related to how Safari handles certain events, particularly in scenarios with nested hoverable components.
To address this issue in Safari, the component should be refreshed after rendering. It ensures that all references are properly updated. This fix will be applied conditionally for Safari only, as the existing logic functions correctly in all other browsers.
Before:
Bug.mp4
After:
Fixed.mp4
Fixed Issues
$ #54520
PROPOSAL: #54520 (comment)
Tests
Offline tests
QA Steps
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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
DesktopHover.mp4
MacOS: Desktop
DesktopHover.mp4