Open
Description
Description
After resizing a component created with react-rnd
just once, the component becomes undraggable. The onDragStart
event is not triggered anymore after resizing. The component only becomes draggable again after refreshing the page.
Steps to Reproduce
- Create a component using 1react-rnd`.
- Add
onDragStart
,onDrag
, andonResize
handlers. - Resize the component (width).
- Attempt to drag the component after resizing.
Expected Behavior
- The component should remain draggable after resizing.
- onDragStart should trigger correctly after resizing.
Actual Behavior
- The component becomes undraggable after resizing once.
- onDragStart is not triggered after resizing.
Environment
- react-rnd version: ^10..
- React version: 18
Additional Context
This issue occurs immediately after resizing the component once. The component only becomes responsive to dragging again after refreshing the page.
Metadata
Metadata
Assignees
Labels
No labels