Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using draggableElem.unset() ondrop #919

Closed
nishirken opened this issue May 28, 2021 · 1 comment
Closed

Using draggableElem.unset() ondrop #919

nishirken opened this issue May 28, 2021 · 1 comment

Comments

@nishirken
Copy link

nishirken commented May 28, 2021

Hi
I'm using interactjs in my React project for dnd emulation though pointer events from this library. But encountered with problem.
If I use .unset() on draggable element unmount during drop process, I got an error.
I reprodused it with pureJs: https://codepen.io/nishirken/pen/LYWzNYK

Expected behavior

interactable should be handled before fireEvent call, or events dispatching process should be terminated for elem, which doesn't have interactable instance.

optional call this.interactable?.fire(iEvent) seems to be the simplest solution.

Actual behavior

error
image

System configuration

interact.js version: 1.10.11
Browser name and version: FireFox Developer Edition v89.0b15 (64-bit)
Operating System: macOS 11.4

@stale
Copy link

stale bot commented Jun 16, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jun 16, 2021
@stale stale bot closed this as completed Jul 9, 2021
@taye taye reopened this Aug 21, 2021
@stale stale bot removed the stale label Aug 21, 2021
@taye taye closed this as completed in f5330d0 Jun 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants