Skip to content

Inputs are not focused when clicked (v14) #1002

Open
@IanVS

Description

@IanVS

Reproduction example

https://github.com/IanVS/storybook-testing-user-event-click-focus

Prerequisites

  1. Using V14, try to click an input field: await userEvent.click(getByRole('textbox')); for example

Expected behavior

The input element should be fully focused, ready to accept user input (flashing cursor).

Actual behavior

The input is half-way focused, with a focus ring, but no flashing cursor.

User-event version

14.3.0

Environment

Testing Library framework: @testing-library/[email protected]

JS framework: [email protected]

Test environment: [email protected]

DOM implementation: browser

Additional context

This was working correctly in V13. I have instructions in the README of the reproduction of how to verify.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenvironmentIssue with the environment

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions