Add a delay to prevent focus from setting before the animation is finished#73153
Conversation
Codecov Report❌ Patch coverage is
... and 1423 files with indirect coverage changes 🚀 New features to boost your workflow:
|
|
@ishpaul777 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] |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2025-10-29.at.4.59.50.AM.movAndroid: mWeb ChromeUploading Screen Recording 2025-10-29 at 5.16.12 AM.mov… iOS: HybridAppScreen.Recording.2025-10-29.at.4.00.48.AM.moviOS: mWeb SafariScreen.Recording.2025-10-29.at.4.13.40.AM.movMacOS: Chrome / SafariScreen.Recording.2025-10-29.at.3.38.57.AM.movMacOS: DesktopScreen.Recording.2025-10-29.at.5.06.52.AM.mov |
|
LGTM |
HelpDot Documentation ReviewAssessment ResultThis PR (#73153) does not contain any HelpDot documentation changes to review. PR Summary
RecommendationThis PR is a technical fix for a UI animation timing bug and does not require HelpDot documentation review. The changes are limited to component logic and do not affect user-facing documentation. If you intended to request a review of a different PR that contains documentation changes, please specify the correct PR number. |
|
✋ 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/mountiny in version: 9.2.41-0 🚀
|
|
🚀 Deployed to production by https://github.com/puneetlath in version: 9.2.41-6 🚀
|
Explanation of Change
The bug occurred because focus from within
inputValidateCodeRef.current?.clear()was set too early, during the RHP animation. This has been resolved by introducing a delay equal to the animation duration.Fixed Issues
$ #73030
Tests
Offline tests
N/A
QA Steps
Same as tests.
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))npm run compress-svg)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
Screen.Recording.2025-10-22.at.12.05.14.mov
MacOS: Desktop
Screen.Recording.2025-10-22.at.12.11.46.mov