-
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
[$500] Request money - Text input isn't auto focused after screen transition ends #27450
Comments
Triggered auto assignment to @lschurr ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Text input isn't auto focused after screen transition ends when creating / editing a waypoint in the distance request waypoint editor What is the root cause of that problem?The screen entry transition end event handler in WaypointEditor doesn't always fire except the screen is at the top of the navigation stack. App/src/pages/iou/WaypointEditor.js Line 163 in 95c9e47
What changes do you think we should make in order to solve the problem?We are now using a new approach to autofocus text inputs upon launching a screen according to https://expensify.slack.com/archives/C01GTK53T8Q/p1694660990479979 Implement these changes in the WaypointEditor component.
What alternative solutions did you explore? (Optional)None. |
Job added to Upwork: https://www.upwork.com/jobs/~01bfadaee4d9a59119 |
Current assignee @lschurr is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ntdiary ( |
This works well in my end. |
📣 @dev3606! 📣
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Text input isn't auto focused after screen transition ends What is the root cause of that problem?We are using App/src/pages/iou/WaypointEditor.js Line 163 in 95c9e47
What changes do you think we should make in order to solve the problem?We need to add useFocusEffect hook and remove
What alternative solutions did you explore? (Optional)NA |
Based on the provided code, it seems that the problem is related to the use
of the useFocusEffect hook and the onEntryTransitionEnd function in the
ScreenWrapper component of the WaypointEditor component. To solve this
problem, the following changes should be made:
Remove the onEntryTransitionEnd function from the ScreenWrapper component.
This function is no longer needed if we're using the useFocusEffect hook.
Import the useFocusEffect hook from the appropriate library or module.
Add the useFocusEffect hook inside the WaypointEditor component and wrap it
around the code that involves focusing on the textInputRef.current element.
Thanks.
Kevin
… Message ID: ***@***.***>
|
But I don't want get pay via a upwork.
So sorry.
Kevin
…On Thu, Sep 14, 2023 at 12:53 PM Dev 3606 ***@***.***> wrote:
Based on the provided code, it seems that the problem is related to the
use of the useFocusEffect hook and the onEntryTransitionEnd function in the
ScreenWrapper component of the WaypointEditor component. To solve this
problem, the following changes should be made:
Remove the onEntryTransitionEnd function from the ScreenWrapper component.
This function is no longer needed if we're using the useFocusEffect hook.
Import the useFocusEffect hook from the appropriate library or module.
Add the useFocusEffect hook inside the WaypointEditor component and wrap
it around the code that involves focusing on the textInputRef.current
element.
Thanks.
Kevin
> Message ID: ***@***.***>
>
|
This is a duplicate of #27202. |
Thanks a lot.
…On Thu, Sep 14, 2023 at 1:22 PM Sasha Kluger ***@***.***> wrote:
Closed #27450 <#27450> as
completed.
—
Reply to this email directly, view it on GitHub
<#27450 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/A2P3B7EELJGVYZ5XRWGTCKDX2M4O5ANCNFSM6AAAAAA4YIDVWU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Issue found when executing PR #27294
Action Performed:
Choose Start & End locations >> Next
Expected Result:
Verify that the text input is auto focused after screen transition ends
Actual Result:
Text input isn't auto focused after screen transition ends
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.70-2
Reproducible in staging?: Yes
Reproducible in production?: Yes
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
Bug6200485_27294_Safari.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: