Open IuliiaHerets opened 2 hours ago
Triggered auto assignment to @slafortune (Bug
), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.
@slafortune FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors
Edited by proposal-police: This proposal was edited at 2024-10-01 09:20:21 UTC.
Waypoint field is not focused after returning from "Keyboard Shortcuts" Page
we don't have the logic to re-focus when users go back to that page
The logic here
just run when the page is mount, if users open "Keyboard Shortcuts" Page, it's still there that why when they go back, this function is not trigger.
In IOURequestStepWaypoint
use useAutoFocusInput
like what we did in other pages
const {inputCallbackRef} = useAutoFocusInput();
...
<InputWrapperWithRef
InputComponent={AddressSearch}
...
ref={inputCallbackRef}
and remove onEntryTransitionEnd={() => textInput.current?.focus()}
Check other places that has same issue
https://github.com/user-attachments/assets/4925c397-f7db-4485-815a-51ee7caaada2
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: v9.0.41-2 Reproducible in staging?: Y Reproducible in production?: Y Email or phone of affected tester (no customers): gibethlehem@gmail.com Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
Waypoint field is focused
Actual Result:
Waypoint field is not focused after returning from "Keyboard Shortcuts" Page
Workaround:
Unknown
Platforms:
Screenshots/Videos
https://github.com/user-attachments/assets/20970849-f494-4fea-b2f6-8a1600de647b
View all open jobs on GitHub