Skip to content
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

[Bug] List with group + press-delay will remove item on click #161

Open
DanSnow opened this issue Mar 7, 2022 · 1 comment
Open

[Bug] List with group + press-delay will remove item on click #161

DanSnow opened this issue Mar 7, 2022 · 1 comment

Comments

@DanSnow
Copy link

DanSnow commented Mar 7, 2022

Description

Example link: https://stackblitz.com/edit/vitejs-vite-n4debu?file=src%2FApp.vue&terminal=dev

Please see the video

recording.mp4

I think that we need to set the sortableGhost to null here:
https://github.com/Jexordexan/vue-slicksort/blob/dev/src/ContainerMixin.ts#L655

Or it will be removed here: https://github.com/Jexordexan/vue-slicksort/blob/dev/src/ContainerMixin.ts#L515

Reproduce steps:

  1. click and hold on any item until its background color changed
  2. click on the same item again
DanSnow added a commit to storipress/vue-slicksort that referenced this issue Mar 7, 2022
@lotestudio
Copy link

lotestudio commented Aug 30, 2022

I've tested the solution, but the bug still exists.
Found that if rerender the list, everything is as expected:
<SlickList v-model:list="..." group="..." :pressDelay="500" :key="componentKey" @sort-end="componentKey++" @contextmenu="$event.preventDefault()" "

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants