Skip to content

Events doesn't correct if add draggable prop #36

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
bavrr opened this issue May 21, 2024 · 2 comments
Open

Events doesn't correct if add draggable prop #36

bavrr opened this issue May 21, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@bavrr
Copy link

bavrr commented May 21, 2024

I got something like

VirtualList.taxonomy-list__scroller(
         v-model="visibleTree"
          :data-key="'id'"
          draggable=".taxonomy-list__group"
          :fallback-on-body="true"
          :group="'taxonomy'"
          :keeps="50"
          :size="36"
          @drag="onDrag"
          @drop="onDrop"
        )
          template(#item="{record}")
            TaxonomyTaxonomy.taxonomy-list__group(
              v-if="record.parent_id === null && !record.special"
              :taxonomy="record"
            )
            TaxonomyTaxon(
              v-else-if="!record.special"
              :is-opened="expandedTaxonomyKeys.has(record.id)"
              :taxon="record"
            )
            TaxonomyWithout.taxonomy-list__group(
              v-else
              :taxon="record"
            )

With prop draggable=".taxonomy-list__group" i can drag correct items, but index is always -1, key = null, item = undefined (tested for onDrag and onDrop)
image

DOM structure:
image

If i remove this prop, all would be work correctly.
image
image

@mfuu mfuu added the bug Something isn't working label May 22, 2024
@mfuu
Copy link
Owner

mfuu commented May 23, 2024

@bavrr please update to the latest version to see if works correct

@bavrr
Copy link
Author

bavrr commented May 24, 2024

@mfuu fixed, ty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants