vue-dragula icon indicating copy to clipboard operation
vue-dragula copied to clipboard

Moving from a list to another

Open vitobotta opened this issue 8 years ago • 7 comments

Hi, I'm using this in a project and it's cool - thanks! I'm having a problem though when moving an item from a list to another where the drag and drop works fine, but the underlying Vue data is not updated accordingly. If I reorder items within the same list instead, the Vue data is updated automatically as I can see with the Chrome dev tools.

Any idea? Thanks in advance.

vitobotta avatar Nov 05 '16 17:11 vitobotta

Dunno if it's useful but here's a fiddle: https://jsfiddle.net/vitobotta/1Lu8yja4/13/

For some reason the Vue Chrome extension doesn't work when I have JSFiddle open and the console seems to suggest that data doesn't get updated even when reordering within the same list. Not sure what I am missing....

vitobotta avatar Nov 05 '16 18:11 vitobotta

Well, the current version doesn't work well with vuejs 2.0. I'm planning for a rewrite.

Astray-git avatar Nov 09 '16 03:11 Astray-git

Hi @Astray-git , thanks. I am trying to use Dragula directly now but I really look forward to a new version of this plugin!

vitobotta avatar Nov 09 '16 11:11 vitobotta

Please update for Vue2 ASAP Thanks!!! :)

kristianmandrup avatar Nov 11 '16 14:11 kristianmandrup

@vitobotta Please help porting to Vue2 ;)

kristianmandrup avatar Nov 11 '16 14:11 kristianmandrup

@kristianmandrup I wish I could but afraid my JS is not good enough for that :-/

vitobotta avatar Nov 11 '16 19:11 vitobotta

@vitobotta I got it working here...

https://github.com/Astray-git/vue-dragula/pull/26 See demo here: https://github.com/kristianmandrup/vue2-dragula-demo/

But suddenly it stopped working for me locally! I'm too tired now. Will work more on it tmrw.

kristianmandrup avatar Nov 11 '16 21:11 kristianmandrup