Skip to content

Input does not handle Tab focus and autofocus correctly. #4514

@parasharrajat

Description

@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:

  1. New text input requires extra keystroke when using tab to get focus
  2. Autofocus is not set correctly.

Action Performed:

  1. Open the Login page.
  2. Observe the email input.
  3. Go to the password page, observe the password input. It is auto-filled, but input is not focused.
  4. Now try to navigate use the Tab key. Users have to press tag two times to set the focus on Input.

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?

  • Web
  • Desktop App
  • Mobile Web

Version Number:
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
image

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

Metadata

Metadata

Assignees

Labels

EngineeringExternalAdded to denote the issue can be worked on by a contributorHourlyKSv2ReviewingHas a PR in review

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions