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! |
|
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 Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
DesktopHover.mp4
MacOS: Desktop
DesktopHover.mp4