Repository navigation
Conversation
JakubKorytko
left a comment
There was a problem hiding this comment.
nothing blocking, a few small ones below
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@stitesExpensify 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] |
|
@mountiny adding you since you are the owner of the issue |
joekaufmanexpensify
left a comment
There was a problem hiding this comment.
Good for product.
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid.movAndroid: mWeb Chromeandroid-web.moviOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
@jmgraa Could you please check all the check boxes so that the author checklist pipeline can be passed? Thanks |
|
🚧 mountiny 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! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.5.53-0 🚀
|
|
No help site update needed — this PR restores expected amount-entry behavior during long presses on the number pad without adding a feature, changing a workflow, or making existing article instructions incorrect. |
|
🚀 Deployed to production by https://github.com/arosiclair in version: 9.5.53-3 🚀
Bundle Size Analysis (Sentry): |
Explanation of Change
On Chrome on Android, holding down a number pad key such as backspace causes the browser to shift focus to the pressed element without dispatching a
mousedownevent. Consequently, the individual keys'onMouseDownfocus protection does not execute, causing the amount input to blur unexpectedly mid-interaction. When the input blurs,FormProvidermarks the field as touched and prematurely renders validation errors (e.g., "Please enter a valid rate" or empty amount errors) while the user is still actively modifying the value.This PR fixes the issue by:
onPointerDownhandler to the outerBigNumberPadcontainer that invokesevent.preventDefault()exclusively for touch pointer events (pointerType === 'touch'), preventing focus theft from the input during long presses.react-native-webpress handling continue to dispatchmousedownas expected.KeypadAmountBigNumberPadTest.tsxvalidating thatpreventDefaultis called on touch events and bypassed on mouse events.Fixed Issues
$ #107621
PROPOSAL:
Tests
BigNumberPadand form validation (e.g., Workspace Settings > More features > Distance rates > Add/Edit rate or submit expense amount entry).12.50).<) on the custom number pad to continuously erase numbers.Offline tests
N/A
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)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.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: mWeb Chrome
Before
before.mov
After
after.mov