react-spectrum
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
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:
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!
Closing as stale.