Skip to content

Element layout only calculated onMount #125

@LostKobrakai

Description

@LostKobrakai

I was hiding elements with classList={{ hidden: bool }}, so the droppables only show up once a draggable is picked up. The draggables didn't work though, because their layout is calculated onMount and was never updated when the element became visible. As a workaround I found either rendering the whole element on a condition or using visibility + pointer-event css over display: none.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions