react-grid-layout / react-resizable

A simple React component that is resizable with a handle.

Home Page:https://strml.github.io/react-resizable/examples/1.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can I use this in tandem with React-Draggable?

tetron432 opened this issue · comments

Thanks for opening an issue!

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

  • Bug
  • Feature Request
  • Question

Problem Report

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

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.

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