Skip to content

dragDisabled not immediately updating when using $state rune #642

@mdtomo

Description

@mdtomo

After upgrading from Svelte 4 to 5 I've found an issue where when implementing dragDisabled with a custom drag handle, the property is not updating immediately and requires an extra mouse click.

See playground for reproduction. When the mousedown event fires the item should be immediately draggable but it's not draggable until a second click and drag. I'm not using the draghandlezone wrapper action since I need access to when the item becomes draggable.

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