-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Integrate MultiDrag plugin #1052
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
Conversation
* remove warn when selected-class is not set * change of checking plugin mounted
@David-Desmaisons if you need something more, let me know |
* new function for creating sortable.js instance * clearing process plugin options
@divinespear there's an error in the module, when you select 2 elements from a list with the first being the first element(index 0) and the second either 3rd or higher (index 2+) then try drop into another list as the first element, the move doesn't work. I've created a sample for quick testing here https://codesandbox.io/s/holy-hooks-8ufo4 Also when you move 2+ items the second is not removed from the list |
Hi @divinespear, I have been integrating MultiDrag myself for my company. And I ran into a similar issue that @rowino reported. Please let me know if you have any clue, thanks in advance. And here is something I found. I have List A and List B in the same group. List A has Lists before: Now, if I select a, c, e in List A and drag them to the end of List B. With the code below, there will be a bug that causing the event being emitted is 'update' on List A and 'add' on List B. Although it should be 'remove' on List A and 'add' on List B. This why the item is not moved into List B but instead moved inside of List A in my case. Lists after: For item 'e-dragged'. The (This is part of the code of MultiDrag plugin: MultiDrag.js line 420 - 432)
|
@divinespear I've updated the sandbox with your changes but still the issues persist. Can you try the sandbox, you might better luck than me |
* moved to separate function to get indicies to remove * reuse indicies to remove
@divinespear still not working when you drop 2&6 above 1. I created a separate implementation without multidrag plugin which works as expected: https://codesandbox.io/s/single-drag-with-multi-select-cqivd. It would be nice to have a multidrag version though |
I have some additional patches to get this working correctly: https://github.com/david-mohr/Vue.Draggable/tree/multidrag There are a couple of scenarios that trigger unusual event sequences which I have fixed:
What's the best way to add these changes to this pull request? |
Hey guys! I was using the version from this commit for my project successfully, but since it was closed (apparently over the weekend) I am having trouble to deploy a new version of my app since the following dependency returns now a not found error:
Is there any chance that what was in this pull request mught be reopened and reconsider to merge into master? This pull request made by @david-mohr seems to be working fine for a merge but as I understad that particular PR is for Vue 3 I would appreciate any input in this, since our users were using the functionality in that commit without any issues and now Im blocked to realease new versions of my app (unless I remove the multidrag function which is vital for the users) Also if there's no way this could be reopened... any advise/tool on how to preserve the multidrag functionality in my current project without having to change all the code? @David-Desmaisons @divinespear Thanks |
@juansinmiedos I have a fork of divinespear/Vue.Draggable here: david-mohr/Vue.Draggable, hopefully you can find what you're looking for there? david-mohr/Vue.Draggable/commits/multidrag |
@david-mohr I might have done it wrong but it didnt workout for me. For anyone coming across with this issue this solved it for me:
|
For #104, #536, and #649 🚀
#744 is superseded by this with: