8000 Resizing once makes component undraggable until page refresh · Issue #971 · bokuweb/react-rnd · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Resizing once makes component undraggable until page refresh #971
Open
@standleypg

Description

@standleypg

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

  1. Create a component using 1react-rnd`.
  2. Add onDragStart, onDrag, and onResize handlers.
  3. Resize the component (width).
  4. 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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0