Fix autofocus issue on closing side panel#70097
Conversation
|
@linhvovan29546 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] |
|
@carlosmiceli Could you please trigger adhoc build for this PR? |
|
🚧 @carlosmiceli has triggered a test Expensify/App build. You can view the workflow run here. |
This comment has been minimized.
This comment has been minimized.
|
@jmusial I'd try merging main just in case in this PR. |
|
@carlosmiceli This is a regression from PR #68026, so perhaps @hoangzinh should be the reviewer here or me? |
|
🚧 @carlosmiceli has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪
|
|
@carlosmiceli, merged please take a look if it helped. |
|
🚧 @carlosmiceli has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪
|
|
Also, the back button and Help text at the Help panel seem misplaced or might have extra spacing on the left. Did you also notice that, @jmusial @linhvovan29546? |
|
@hoangzinh done |
|
Uhm, the |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2025-09-12.at.18.00.20.android.movAndroid: mWeb ChromeScreen.Recording.2025-09-12.at.18.02.20.android.chrome.moviOS: HybridAppScreen.Recording.2025-09-12.at.18.07.31.moviOS: mWeb SafariScreen.Recording.2025-09-12.at.18.08.35.movMacOS: Chrome / SafariScreen.Recording.2025-09-12.at.17.58.00.web.movMacOS: DesktopScreen.Recording.2025-09-12.at.17.59.41.desktop.mov |
|
✋ 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/carlosmiceli in version: 9.2.14-1 🚀
|
|
🚀 Deployed to production by https://github.com/Beamanator in version: 9.2.14-7 🚀
|
|
Has NOT been deployed to prod. The PR has been reverted, I'm taking a look @ possible solutions. |
|
Hi @jmusial, is your PR merged, or are you currently working on PR? |
|
it's on my TODO list, but since side panel has been "sidelined" since then (#70544) it's not the highest priority :( |

Explanation of Change
This PR fixes a bug with inputs not being focused properly after opening and then closing the Help Panel.
In
useAutoFocusInputin hook:executes 3 times on closing Side Panel.
The
!shouldHideSidePanel || prevShouldHideSidePanellets theisScreenTransitionEndedset only before the actual transition ended, so it is set tofalse.It was working till now because
useSidePanelwas a simple hook with initial state forisSidePanelTransitionEndedset totrue. Now that is has been changed into context, the initial value isfalseif it has been used before.Fixed by updating early exit condition in a hook.
Fixed Issues
$ #69766
PROPOSAL:
N/A
Tests
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand 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
0044.android.native.mov
Android: mWeb Chrome
0044.android.web.mov
iOS: Native
0044.ios.native.mp4
iOS: mWeb Safari
0044.ios.safari.mp4
MacOS: Chrome / Safari
0044.chrome.desktop.mov
MacOS: Desktop
0044.native.desktop.mov