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, and onResize 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.
Description
After resizing a component created with
react-rndjust once, the component becomes undraggable. TheonDragStartevent is not triggered anymore after resizing. The component only becomes draggable again after refreshing the page.Steps to Reproduce
onDragStart,onDrag, andonResizehandlers.Expected Behavior
Actual Behavior
Environment
Additional Context
This issue occurs immediately after resizing the component once. The component only becomes responsive to dragging again after refreshing the page.