react-grid-layout / react-resizable

A simple React component that is resizable with a handle.
https://strml.github.io/react-resizable/examples/1.html
MIT License
2.43k stars 367 forks source link

Can I use this in tandem with React-Draggable? #212

Open tetron432 opened 1 year ago

tetron432 commented 1 year ago

Thanks for opening an issue!

Please select the type of issue you're reporting. For questions.

Problem Report

Can I use this library together with React-Draggable, by any chance?

purfectliterature commented 1 year ago

Assuming you meant this react-draggable library, then yes, you can.

Just remember to put the Resizable component inside Draggable or DraggableCore, and not the other way around, else it wouldn't work.

Ajamuar commented 1 year ago

This doesn't seem to work as shown in the codesandbox below. Can you please help us figure out how to structure it in the correct way?

https://codesandbox.io/s/fervent-cerf-0z335q?file=/src/components/Line.tsx

ivanmartinvalle commented 1 month ago

This comment provides a workaround: monkey-patch a e.stopPropagation().