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

Fix `useCalendarCell` `Failed to execute 'releasePointerCapture' on 'Element': No active pointer with the given id is found` by wrapping in try catch

Open travisrcory opened this issue 1 year ago • 1 comments

Closes https://github.com/adobe/react-spectrum/issues/5998

✅ Pull Request Checklist:

  • [x] Included link to corresponding React Spectrum GitHub Issue.
  • [ ] Added/updated unit tests and storybook for this change (for new code or code which already has tests).
  • [ ] Filled out test instructions.
  • [ ] Updated documentation (if it already exists for this component).
  • [ ] Looked at the Accessibility Practices for this feature - Aria Practices

📝 Test Instructions:

🧢 Your Project:

travisrcory avatar Mar 04 '24 16:03 travisrcory

Thanks for the PR and Issue. I don't quite follow when this happens. Can you show a sample which reproduces the error? Preferably in a codesandbox or stackblitz or on our docs? as well as some steps to follow to verify the issue?

Would it make more sense to call hasPointerCapture to determine if we should release it?

If we're able to reproduce it, then hopefully we'll be able to write a test against it and make sure we don't break it again. Thanks again!

snowystinger avatar Mar 05 '24 02:03 snowystinger

Closing as stale.

LFDanLu avatar Apr 12 '25 00:04 LFDanLu