Skip to content

DOMException: Element.releasePointerCapture: Invalid pointer id #9122

@plesiecki

Description

@plesiecki

Provide a general summary of the issue here

Only in the Firefox an error occurs after triggering press state on a Button component from react-aria-components by fireEvent.pointerDown(button, { pointerType: 'touch', pointerId: 1 }); wherefireEvent is from the @testing-library/react.

🤔 Expected Behavior?

No errors in Firefox

😯 Current Behavior

Uncaught DOMException: Element.releasePointerCapture: Invalid pointer id

💁 Possible Solution

#9123

🔦 Context

No response

🖥️ Steps to Reproduce

  1. git clone git@github.com:plesiecki/react-spectrum-releasePointerCapture-repro.git
  2. npm i
  3. npm test — it'll run a test in the firefox using vitest's browser mode

Version

react-aria-components@1.13.0

What browsers are you seeing the problem on?

Firefox

If other, please specify.

No response

What operating system are you using?

macOS 15.3.1

🧢 Your Company/Team

No response

🕷 Tracking Issue

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions