-
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
[HOLD for payment 2024-04-05] [Simplified Collect][Taxes] Android - Workspace - Tax name field isn't auto focused the keyboard isn't visible #38572
Comments
👋 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 @nkuoch ( |
We think that this bug might be related to #wave-collect - Release 1 |
cc: @luacmartins |
ProposalPlease re-state the problem that we are trying to solve in this issue.Tax name field isn't auto focused, the keyboard isn't visible, only the cursor is shown. The keyboard appears if you tap inside the field. What is the root cause of that problem?We pass
What changes do you think we should make in order to solve the problem?We should use
What alternative solutions did you explore? (Optional)NA |
I think it's a duplicate of this issue: #38497 |
Job added to Upwork: https://www.upwork.com/jobs/~01cb504f048b994348 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @alitoshmatov ( |
c.c. @luacmartins , this seems to be related to taxes |
ProposalPlease re-state the problem that we are trying to solve in this issue.The tax name field lacks auto-focus, rendering the keyboard invisible. What is the root cause of that problem?We don't have autofocusing behavior What changes do you think we should make in order to solve the problem?Add autofocusing behavior by using useAutoFocusInput
App/src/components/TextPicker/TextSelectorModal.tsx Lines 41 to 45 in 34fa987
What alternative solutions did you explore? (Optional)N/A |
ProposalPlease re-state the problem that we are trying to solve in this issue.Android - Workspace - Tax name field isn't auto focused the keyboard isn't visible What is the root cause of that problem?this a common behaviour in android native when try to focus input while transition is not ended yet. What changes do you think we should make in order to solve the problem?we should wait transition to end then focus input by those steps. follow this approech in TextSelectorModal.tsx const inputRef = useRef<BaseTextInputRef | null>(null);
<Modal
...
onModalShow={() => rest?.autoFocus && inputRef.current?.focus()}
>
<TextInput
{...rest}
autoFocus={false} // <<<< add this after rest.
ref={(e) => inputRef.current = e} // <<<< add this after rest.
/>
</Modal> resultScreen.Recording.2024-03-19.at.4.00.27.PM.movI think this approech keep controlling by prop autoFocus and not remove it. Important using useAutoFocusInput will foucs the input only the first time you open modal but if you back then enter the modal again it will not focus. What alternative solutions did you explore? (Optional)alternatively we can use <TextInput
{...rest}
autoFocus={false} // <<<< add this after rest.
/> |
This is not a blocker and something we can address in a follow up to the feature implementation. |
📣 @alitoshmatov 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
I think this can be handled in #37955. |
Ah, should we hold on #37955 then? Perhaps you could test it with that PR maybe? |
This case was not covered on that PR |
Ok, so we still need this issue. cc @ArekChr since you're assigned to it |
I'll take this one |
@luacmartins
|
Thanks @ahmedGaber93! It seems like we were already using |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.57-5 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 2024-04-05. 🎊 For reference, here are some details about the assignees on this issue:
|
No payment needed for me as C+ reviewer |
Issue is ready for payment but no BZ is assigned. @bfitzexpensify you are the lucky winner! Please verify the payment summary looks correct and complete the checklist. Thanks! |
No payment needed. Closing. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 1.4.54.0
Reproducible in staging?: y
Reproducible in production?: n
Issue found when executing PR: #37967
Issue reported by: Applause - Internal team
Action Performed:
Precondition: With a new expensifail account in OD, create a Collect workspace with workspace chat enabled.
Expected Result:
The keyboard should be visible.
Actual Result:
Tax name field isn't auto focused, the keyboard isn't visible, only the cursor is shown. The keyboard appears if you tap inside the field.
Workaround:
n/a
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6418905_1710834758344.az_recorder_20240319_084531.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: