Skip to content

Failed to execute 'releasePointerCapture' on 'Element': No active pointer with the given id is found. within useCalendarCell #5998

Closed
@travisrcory

Description

@travisrcory

Provide a general summary of the issue here

The following lines of code are throwing an error within my application:

if ('releasePointerCapture' in e.target) {
e.target.releasePointerCapture(e.pointerId);
}

This does not block user's from interacting with the calendar, but it will cause an application to throw the error.

🤔 Expected Behavior?

If there is an error and it is safe to ignore, it should be swallowed by useCalendarCell.

😯 Current Behavior

If there is an error when e.target.releasePointerCapture(e.pointerId); is called, it is thrown in the browser.

💁 Possible Solution

Wrap the function in a try catch and swallow the error if it is safe to be ignored.

🔦 Context

No response

🖥️ Steps to Reproduce

N/A

Version

3.32.1 of react-aria

What browsers are you seeing the problem on?

Chrome

If other, please specify.

No response

What operating system are you using?

Windows 10

🧢 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