-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[$500] IOU - Save button does not save and return to details page, only dismisses keyboard #36218
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01dac536754e07ef50 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @DylanDylann ( |
Triggered auto assignment to @jliexpensify ( |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
Triggered auto assignment to @Julesssss ( |
Looks like a regression from #34254 I delete this new code |
I actually can't reproduce this on |
This is reproducible on mSafari. After reverting #34254 locally, not reproduced. |
Thanks, yeah was just able to repro on iOS mWeb. I thought it was just a case of not filling all the checkboxes 😭 |
Okay, the workaround is simple (press the button again), so this isn't a blocker. I'll revert the PR when I have a moment, but won't cherry-pick it |
@suneox Can you see this, and find the problem in this? |
Hey, i think the fix is straightforward we just need to add 'BUTTON' in
Screen.Recording.2024-02-09.at.5.09.42.PM.mov |
Okay great, I'll close my revert if you'd like to raise the PR 👍 |
okay i'll open a PR in 10-15 mins |
@ishpaul777 @Julesssss Can you please wait? Let @suneox confirm this solution and then proceed. |
Are they online though? I'd rather just get this resolved ASAP. |
Actually sure, we can wait a bit as we won't deploy today and it's no longer a blocker 👍 |
@shubham1206agra |
@Julesssss @shubham1206agra const [cachedViewportHeight, setCachedViewportHeight] = useState(windowHeight); to const [, cachedViewportHeight, setCachedViewportHeight] = useDebouncedState(windowHeight, CONST.TIMING.RESIZE_DEBOUNCE_TIME); PR is already to change status Result Screen.Recording.2024-02-11.at.11.17.10.mov |
Looks good @suneox thanks. |
I am sorry if i am not able to understand the root cause correctly, but i have tested the solution thoroghly and it works 100% of the time, do you mind providing a feedback on any edge case you find I might have missed. Also, i am not able to understand the root cause from #36218 (comment) but as far i know use debounce is avoided in codebase it often not solves the root cause directly but a workaround |
@ishpaul777 Your change will against fix cached the viewport height and the button is still delayed when the keyboard hiding
@ishpaul777 Can you provide the root cause? The conflict event I found when we applied cached height of the virtual viewport behavior (change immediately instead of default is delay) combined with flex: 1 at FormWrapper due to another button still work when keyboard open (Exam: back button) or removing flex:1 the button also work
Have you got any reference documents use debounce is avoided in codebase? as I know we can use debounce to limit the rate event/value |
@Julesssss this is a regression from #34254 , could you assign this issue to @shubham1206agra and unassign me? Or close this one and bring it to the original issue |
Ah, but i dont see any delay using this see video in #36218 (comment) when button is clicked it instantly redirect users but yeah i'll let you guys take care of this one as you have most context 👍
I have read this many times in past on other issues, many proposals rejected by c+ because of this. |
This issue has not been updated in over 15 days. @Julesssss, @jliexpensify, @shubham1206agra eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
I think @shubham1206agra is still working on this? |
This has been fixed already. You can close this. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.4.39.0
Reproducible in staging?: Y
Reproducible in production?: N
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause-Internal Team
Slack conversation:
Action Performed:
Pre-requisite: the user must be logged in.
Expected Result:
After tapping on the "Save" button, the data should be saved and the user should be taken back to the request details.
Actual Result:
After tapping on the "Save" button the keyboard is dismissed.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6373088_1707463542484.Klwh0756_1_.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: