Skip to content

v14.6.0 breaks react-aria #1277

Description

@dansul-WittGruppe

Reproduction example

https://codesandbox.io/p/github/dansul-WittGruppe/user-event-bug/main

Prerequisites

  1. Install react-aria
  2. use a react-aria component that uses useFocusVisible hook (e.g. Linear Progress)
  3. wrap the component and import the wrapped component with React.lazy
  4. use the wrapped component in a test

Expected behavior

Test will pass.

Actual behavior

Test fails with TypeError: Cannot set property focus of [object HTMLElement] which has only a getter.

User-event version

14.6.0

Environment

Testing Library framework: @testing-library/react@16.2.0

JS framework: react@19.0.0

Test environment: vitest@3.0.7

DOM implementation: jsdom@26.0.0

Component Library: react-aria-components@1.6.0

Additional context

Version <14.6.0 are working well

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds assessmentThis needs to be looked at by a team member

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions