Skip to content

addWidget not working as expected with dynamic elements #567

@mbajur

Description

@mbajur

I'm still not sure if i need to post it here or on vue forums so i decided to post it in both places,

Basically, i'm trying to add a Vue.js component as a gridstack item (using vue custom component syntax). For some reason, the element i'm adding can't be resized nor dragged.

Here is a working demo of this: http://codepen.io/anon/pen/QGxeJB?editors=1010

Please notice that vue elements created before gridstack initialization works fine. Just the ones added by a button click are broken.

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions