[CP Staging] Fix Split - The input field loses focus while typing the split amount.#90125
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2026-05-11.at.15.24.39.movAndroid: mWeb ChromeScreen.Recording.2026-05-11.at.15.27.28.moviOS: HybridAppScreen.Recording.2026-05-11.at.15.36.56.moviOS: mWeb SafariScreen.Recording.2026-05-11.at.15.29.47.movMacOS: Chrome / SafariScreen.Recording.2026-05-11.at.15.22.36.mov |
|
🚧 @mjasikowski 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, and Web. Happy testing! 🧪🧪
|
…lit-list-handle-input-focus Fix Split - The input field loses focus while typing the split amount. (cherry picked from commit b3b7460) (cherry-picked to staging by mountiny)
|
🚀 Cherry-picked to staging by https://github.com/mountiny in version: 9.3.69-8 🚀
Bundle Size Analysis (Sentry): |
|
No help site changes are required for this PR. This is an internal React performance fix that wraps a callback in |
|
🚀 Cherry-picked to staging by https://github.com/mountiny in version: 9.3.69-10 🚀
Bundle Size Analysis (Sentry): |
|
🚀 Deployed to production by https://github.com/Beamanator in version: 9.3.69-18 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/mountiny in version: 9.3.70-0 🚀
Bundle Size Analysis (Sentry): |
|
No help site changes are required for this PR. This is a purely internal bug fix — it wraps a callback in |
|
🚀 Cherry-picked to staging by https://github.com/mountiny in version: 9.3.72-0 🚀
Bundle Size Analysis (Sentry): |
|
No help site changes are needed for this PR. This is a pure internal React performance fix — it wraps a callback in |
|
🚀 Deployed to production by https://github.com/lakchote in version: 9.3.72-1 🚀
|
Explanation of Change
useHandleInputFocushook was returning a new function reference on every render, causingSplitListItemWithInputFocuscomponent that uses that function in the dependency array ofuseMemoto re-render and. The fix wraps the returned callback in useCallback with appropriate dependency arrays.Fixed Issues
$ #90066
PROPOSAL: N/A
Tests
Offline tests
N/A
QA Steps
Same as tests
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))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
Screen.Recording.2026-05-10.at.15.02.14.mov
Android: mWeb Chrome
iOS: Native
Screen.Recording.2026-05-10.at.14.52.30.mov
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2026-05-10.at.14.53.29.mov