Skip to content

Conversation

@parassantra
Copy link

@parassantra parassantra commented May 30, 2025

This fixes #442

I have attached a codesandbox with version "@hello-pangea/dnd": "18.0.1" :

  1. this example shows when popout button is clicked and DnD list moves to new window created through portal, it breaks and drag and drop doesn't work. refer to console log for errors
    https://codesandbox.io/p/sandbox/vibrant-https-wfc2lm

I have also attached a codesandbox with version from my fork "@parassantra/dnd-popout-fix": "18.0.1-popout-fix.0"
which has patch from current PR:

  1. Here we can clearly see when popout button is clicked and DnD list moves to new window created through portal, it works fine and no console errors are there.
    https://codesandbox.io/p/sandbox/qm4rtn?file=%2Fpackage.json%3A12%2C5-12%2C57

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.

Support element-dependent Window and Document objects (i.e. popup using React Portals)

1 participant