Skip to content

Split.js: drag is not stopped before destroyΒ #790

@jdospina95

Description

@jdospina95

When you are dragging the gutter and the split gets destroyed you can continue to drag and it breaks the layout. The dragging should be stopped before destroying it, it does not make sense to allow users to keep dragging the gutter if it does not exist anymore. I have prepared a codepen to reproduce the issue, it will destroy the split after 5 seconds so just drag it around (keeping the mouse clicked) until the gutter disappears, and then you can continue to drag it until you let the mouse go.

destroy() should call stopDragging()

Codepen

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