-
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
Input does not handle Tab focus and autofocus correctly. #4514
Comments
Triggered auto assignment to @strepanier03 ( |
Unique - wasn't able to find another issue similar |
Triggered auto assignment to @roryabraham ( |
Nice triage checklist @strepanier03! 👏 |
This can be external, but @parasharrajat can you take a minute to clean up the issue template to get rid of the prompt questions and get a bit more specific about the expected result? |
Triggered auto assignment to @MitchExpensify ( |
Proposal
Which fixes the autofocus issue.
Before Autofocus fixfocus.mp4After Autofocus fixfocus-fix.mp4 |
Hmmm @parasharrajat won't removing the // This won't actually open the software keyboard on iOS Safari
this.input.focus(); |
It does when we do it synchronously which is exactly the case here in componentDidMount. And I just tested it on safari. Works well. Edit: |
@roryabraham I can open a new PR to fix any bugs occured in #3414 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Upwork Job created |
I think this is not a regression(this issue is coming due to browser handling autofocus) but moreover missing cases from the new Input. |
@parasharrajat Feel free to submit a PR once you've been hired on Upwork. |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open
|
Hired in upwork @parasharrajat |
Paid! cc @parasharrajat |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Issues:
Action Performed:
Expected Result:
When autofocus is used, Input should be focused and the border should be shown on the input.
The label should float top when input is focused.
Single Tab keystroke should set the focus in the input.
Actual Result:
Input is not focused and the label is overriding the Input text. The cursor is placed on the Input but the label is not placed correctly and there is no blue border that shows the focused state. Users have to press the tab two times to get focus on the input.
Workaround:
Clear the input and refocus.
Platform:
Where is this issue occurring?
Version Number:
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Video
https://expensify.slack.com/files/UDQLCFDRA/F02AZA1V0GL/2021-08-10_10-31-21.mp4
Expensify/Expensify Issue URL:
View all open jobs on Upwork
Slack => https://expensify.slack.com/archives/C01GTK53T8Q/p1628627644189200
Upwork Job
The text was updated successfully, but these errors were encountered: