question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

copy: true behavior is buggy.

See original GitHub issue

I encountered a bug when using copy: true. If you drop something, it will be created twice. I think this is because the model is changed and the gu-transit element is inserted as well. That’s why we then have two occurences of the same object, while only one of them is linked to the model

demo: http://46bb3f4c.ngrok.io/

If you point me in the right direction, that would be great and I will submit a PR. Thanks ahead.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Astray-gitcommented, Jul 21, 2016

Thanks for the vue issue, we should let vue handle DOM update. I cancelled dragula DOM actions.

0reactions
nblackburncommented, Jul 21, 2016

@FranzSkuffka Workaround for the duplicate drop error:

instance.on('drop', (element, target, origin) => {

    const isCopy = dragElement !== dropElement;

    if (isCopy && target.contains(element)) {
        element.remove();
    }
});
Read more comments on GitHub >

github_iconTop Results From Across the Web

ConditionalRoot.isDistributive is buggy · Issue #44019 - GitHub
ConditionalRoot.isDistributive is a flag that indicates that a conditional "distributes" over union. Its set to true when the checkType is a ...
Read more >
How to identify buggy behavior in "input" event without ...
Since the "input" event is only supported in some browsers, I went in search of a way to do feature detection for the...
Read more >
Amazon.com : "Buggy" for Bugs Behavior Bulletin Board Set
The "Buggy" for Bugs collection features an assortment of colorful little creatures in fresh, contrasting designs and patterns with a splash of vivid...
Read more >
Scalable and Systematic Detection of Buggy Inconsistencies ...
Abstract. Software developers often duplicate source code to replicate functionality. This practice can hinder the maintenance of a software project: bugs ...
Read more >
Buggy, Messy & all that - by Anand Sridharan
Some of the attributes that are great for survival in a real jungle (e.g. herding, overconfidence, pattern-seeking, panic) can be ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found