Skip to content

fix: prevent crash in determineDropResult (react-dnd#1281)#1367

Merged
darthtrevino merged 1 commit intoreact-dnd:masterfrom
raineorshine:fix-determine-drop-result
Jun 4, 2019
Merged

fix: prevent crash in determineDropResult (react-dnd#1281)#1367
darthtrevino merged 1 commit intoreact-dnd:masterfrom
raineorshine:fix-determine-drop-result

Conversation

@raineorshine
Copy link
Contributor

When target is undefined, determineDropResult crashes. I was not able to determine why registry.getTarget would return undefined. The issues happens sometimes when I am dragging and dropping quickly. Perhaps the drop target is getting unmounted as mentioned in #31.

I am happy to dig deeper if someone can point me in the right direction regarding which files might be relevant.

This fixes #1281.

When target is undefined, determineDropResult crashes. I was not able to determine why `registry.getTarget` would return undefined. The issues happens sometimes when I am dragging and dropping quickly. Perhaps the drop target is getting unmounted as mentioned in react-dnd#31.

I am happy to dig deeper if someone can point me in the right direction regarding which files might be relevant.

This fixes react-dnd#1281.
@darthtrevino darthtrevino merged commit 5c8af9a into react-dnd:master Jun 4, 2019
darthtrevino pushed a commit that referenced this pull request Feb 3, 2022
When target is undefined, determineDropResult crashes. I was not able to determine why `registry.getTarget` would return undefined. The issues happens sometimes when I am dragging and dropping quickly. Perhaps the drop target is getting unmounted as mentioned in #31.

I am happy to dig deeper if someone can point me in the right direction regarding which files might be relevant.

This fixes #1281.
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

Successfully merging this pull request may close these issues.

not find target by targetId

2 participants