tajo / react-movable

🔀 Drag and drop for your React lists and tables. Accessible. Tiny.
https://react-movable.pages.dev
MIT License
1.53k stars 51 forks source link

createPortal issue while using react-movable within a modal/overlay #65

Closed rohit1901 closed 3 years ago

rohit1901 commented 3 years ago

When an element of the list (li), within an overlay(modal), is dragged, it is not visible. Upon debugging, I found out, that the ReactDOM.createPortal is appending the ghostElement in the body instead of the parent (modal).

Is there anyone who has faced this problem?

tajo commented 3 years ago

You can specify a custom container for the dragged element.