-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[HOLD for payment 2023-06-02] [$2000] Edit box input immediately loses focus #18300
Comments
Triggered auto assignment to @twisterdotcom ( |
Bug0 Triage Checklist (Main S/O)
|
Wow yes, this is infuriating actually! Works fine on Android. Not on iOS. Wonder whether this might actually be a regression though. |
Job added to Upwork: https://www.upwork.com/jobs/~018d878cb02be4bcab |
Current assignee @twisterdotcom is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @fedirjh ( |
Triggered auto assignment to @PauloGasparSv ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Edit box immediately loses focus after getting focus by edit comment action on iOS. What is the root cause of that problem?On iOS, if text input is focused while an animation is happening (popover getting dismissed), it immediately loses focus and onBlur is called. What changes do you think we should make in order to solve the problem?We can add delay before setting focus on textinput, just like we did on android.
I saw some comments regarding user interaction and focus in the file, but this solution worked for me so far. What alternative solutions did you explore? (Optional)Alternatively we can just remove |
Any thoughts on this today @fedirjh or @PauloGasparSv? |
I will review it today. |
@chychkoi Using |
There is no obvious problem, I looked it already while working on another ticket related to this. On Android there is setTimeout but I think this issue requires fix for both, since on Android it's also just a workaround. |
Keeping this open for a bit more time in case there is a solution! |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
No satisfactory proposals yet, waiting for more proposals |
After some more playing around I found a potential fix. runAndResetCallback(callback) {
requestAnimatedFrame(() => {
callback()
});
return () => {};
} We run RPReplay_Final1683725937.movLooks like the callback is being called on the same frame the modal is still closing on the native side, going to investigate that. |
It looks like the problem is not with the native |
According to this line of code, yes, the callback can be called even when the modal is still visible on the native side: They basically change state, wait for the rerender and call The ultimate solution is to use the original So the proposed solution is to wrap Also, found this PR in |
Oh so sorry @terrysahaidak, I misread part of the discussion and thought I agree with you and @fedirjh on adding the |
@PauloGasparSv Yes, I was referring to the |
Thks for confirming. I wasn't sure if we would create a new file like that proposal mentions, should have seen that Change makes sense to me so I'm assigning @terrysahaidak here |
📣 @terrysahaidak You have been assigned to this job by @PauloGasparSv! |
I created a PR as we discussed, it's ready for review. |
🎯 ⚡️ Woah @fedirjh / @terrysahaidak, great job pushing this forwards! ⚡️ The pull request got merged within 2 working days of assignment, so this job is eligible for a 50% #urgency bonus 🎉
On to the next one 🚀 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.18-2 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-06-02. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Offer sent to you @fedirjh. @terrysahaidak I couldn't find you in Upwork, so please apply for $1250 ($1k + $250 for reporting): https://www.upwork.com/ab/applicants/1653543158120652800/job-details @fedirjh please complete the checklist too. |
❌ Link to the PR: N/A , This issue is with an external lib, it was present from long time. We fixed it by applying same existing solution for android. Regression Test Proposal
|
Regression test internal: https://github.com/Expensify/Expensify/issues/288963 |
Ah, sorry. I see @terrysahaidak is from Margelo. No worries then. |
All paid. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
Input should be focused, and the keyboard should appear
Actual Result:
The input immediately loses focus and the keyboard disappears
Sometimes on mobile iOS, it might work as expected for only the very first time
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.8.8
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
RPReplay_Final1683010782.MP4
RPReplay_Final1683010473.MP4
SKVH7218.1.MP4
Expensify/Expensify Issue URL:
Issue reported by: @terrysahaidak
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1683011194146829
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: