react-spectrum icon indicating copy to clipboard operation
react-spectrum copied to clipboard

DOMException: Element.releasePointerCapture: Invalid pointer id

Open plesiecki opened this issue 1 month ago β€’ 7 comments

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

https://github.com/adobe/react-spectrum/pull/9123

πŸ”¦ Context

No response

πŸ–₯️ Steps to Reproduce

  1. git clone [email protected]: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

[email protected]

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

plesiecki avatar Oct 31 '25 22:10 plesiecki