Skip to content

Cannot read property 'element' of null when using vue component #647

@alexeigs

Description

@alexeigs

Wrapping a div works while wrapping any vue component leads to an error for me. This code is within a nested tree of vue components of which one of the parents also uses draggable (without any issue there).

<draggable
      :list="items"
      tag="v-layout"
      class="row wrap fill-height justify-space-around align-center"
      ghost-class="draggable__ghost-class"
      :group="{ name: 'actions' }"
    >
      <v-flex v-for="(action, i) in items" :key="i" class="action-plan__action__row__edit dropitem" xs4>
        <!-- LEADS TO ERROR: <v-card style="height: 100px; width: 100px; background: green"></v-card> -->
        <div style="height: 100px; width: 100px; background: green"></div>
      </v-flex>
</draggable>

changing the div to a vue component like v-card results in an Cannot read property 'element' of null error when starting to drag.

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