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.

Weird behaviour with deep cloning and sort disabled.

See original GitHub issue

Weird behaviour with deep cloning from one list to another when sort is disabled on the first list.

I am trying to get behaviour where I drag from one static list to another list which can be rearranged and added to. When I clone items from the first list to the second and then rearrange the second list, it effects the ordering of the first list. I doing a deep clone using JSON.parse(JSON.stringify(el)) and sort:false (on the first list) so I don’t see how this behaviour is happening.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
eberkundcommented, Sep 23, 2017

I tried to make a demo with JS fiddle and wasn’t able to reproduce it, but I am using this code as the base for what I am doing. If you do,

git clone git@github.com:rfoel/vue-form-builder.git
npm install
npm run dev

You can see the issue I am having.

0reactions
eberkundcommented, Oct 3, 2017

@David-Desmaisons would you believe me if I told you that on the same website the issue appears on my Mac but on Windows it doesn’t (both with Chrome 61)?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Repetitive behaviors and 'stimming' in autism, explained
So-called 'lower-order' repetitive behaviors are movements such as hand-flapping, fidgeting with objects or body rocking, and vocalizations ...
Read more >
Types of Delusions & Common Delusional Themes - WebMD
Delusions come in many forms, but they all have one thing in common: The people affected by them can't be convinced that something...
Read more >
What does Proxy mean in the console in Vue 3?
A proxy is a powerful JavaScript ES6 feature which allows you to intercept any interaction with a target object and execute custom behavior....
Read more >
Handout 2 - Human Cloning Process
Write a short story or brief drama imagining that you are cloned, discussing how you would relate to your clone or clones and...
Read more >
3 Anti-Patterns to avoid in Vue.js - Binarcode
Accessing and doing operations on other components other than the component itself can lead to inconsistencies, bugs, strange behaviors and coupled ...
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