-
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
[C+ Checklist Needs Completion] [$1000] Web - Task title input is not focused after reloading the page #22850
Comments
Triggered auto assignment to @greg-schroeder ( |
Bug0 Triage Checklist (Main S/O)
|
PROPOSALPlease re-state the problem that we are trying to solve in this issue.Task title input is not focused after reloading the page What is the root cause of that problem?RCA is that we are focusing it under the App/src/pages/tasks/NewTaskDetailsPage.js Line 76 in 2454ea8
What changes do you think we should make in order to solve the problem?Solution 1: use autoFocus prop (with/without shouldDelayFocus) Solution 2: use a callback ref We can create a callback ref which will listen to the changes happening in reference to the input field, and whenever our input element is ready, we will focus it const inputRefCallback = useCallback((el) => {
if(!el) return;
if(!inputRef.current) {
el.focus();
}
inputRef.current = el;
}, []) What alternative solutions did you explore? (Optional)None |
It's not the problem with We have more and more pages that use Form and I personally think |
Thanks for sharing this insightful thread, understood the RCA now |
Hmm - should I mark this |
I'm not sure about that too. Maybe I can translate my comment here into a proposal (even though it's technically not my solution haha) then we can apply the |
@greg-schroeder this is dupe of #20000 we can reopen original issue |
I'n not going to reopen that issue as this one has a more robust discussion about the issue and proposals already working. I'll list you as the issue reporter, though. Apologies @chiragxarora, this one was a duplicate report. |
Job added to Upwork: https://www.upwork.com/jobs/~01e4d7c9a31e0cc909 |
Current assignee @greg-schroeder is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @aimane-chnaif ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Input is not focused after reload task input page What is the root cause of that problem?A. If we access the page via link, sometimes the input is not focused, this is due to the I don't think we should make any changes to how we're using B. Sometimes when we load a page for the first time, What changes do you think we should make in order to solve the problem?A.
In here
In here
It only requires 3 line changes in the page, the heavy lifting is already handled inside the hook. We can apply it everywhere that we're using the B. To fix this, we need to:
This will make sure What alternative solutions did you explore? (Optional)NA |
Awaiting proposal review from @aimane-chnaif :) |
@tienifr I like using hook but unfortunately this doesn't work because |
@aimane-chnaif it does call |
can you share your test branch? I tested on web |
@aimane-chnaif here you go |
Issue not reproducible during KI retests. (Second week) |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.84-10 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-10-23. 🎊 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.
For reference, here are some details about the assignees on this issue:
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:
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.84-10 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-10-23. 🎊 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.
For reference, here are some details about the assignees on this issue:
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:
|
Processing |
Issue Participants: Issue reported by: @gadhiyamanan Was this issue merged in time to be eligible for the speed bonus? y Payment summary: Reporter: $250 |
Offers sent. Next up is @aimane-chnaif to complete the c+ checklist |
|
Thanks! Completing payments and closing. |
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 remain focused
Actual Result:
Input is not focused after reload
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.40-4
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
bandicam.2023-07-13.23-39-23-060.mp4
Recording.3614.mp4
Expensify/Expensify Issue URL:
Issue reported by: @gadhiyamanan
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1689271743989309
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: