Skip to content

TexInput onClick focus behavior broken with type=date on Safari #4488

@pevd950

Description

@pevd950

Description

The input focus behavior is broken when using a TextInput with input types such as date and time. Regardless of which part of the input is clicked, focus is reset to the beginning.

Keyboard tab behavior works fine however. Each tab press moves the focus to the next date/time field.

CleanShot.in.Safari-2024-04-10.at.17.33.49.mp4

Identified on primer/react v35.32.2, but was also able to reproduce on the latest version v36.13.0

Steps to reproduce

  1. Go to https://codesandbox.io/p/sandbox/wizardly-sinoussi-42ktdx
  2. Click on the day, year or time fields in the input box

Version

v35.32.2

Browser

Safari

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions