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.

Hey @mfriesen there is an issue with the copy option: https://lukasoppermann.github.io/html5sortable/index.html

  • The new items that are added to a sortable are not part of it, so we would need to reinit every time a copy is added to an item. (This is not so good, maybe we could fix this by fixing the general issue: adding new items to a sortable should automatically work, without the reinit: #312)
  • A bug in copy is that when I move a copied item onto an invalid target (and my copy start list has acceptFrom:false) the item still goes back to the parent. This could also be seen in a bigger picture so that dropping outside a valid target should cancel the sorting action (similar to when pressing esc #313)

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
mfriesencommented, Feb 27, 2018

@lukasoppermann fixing this bug is what I’m trying to do. But in order to do it properly I need to extract break up the code inside of the

sortableElements.forEach(function (sortableElement) {

After my pull requests are merged, I will extract the

_on(items, 'drag event .,.', function (e)

to their own function. Then I believe I can fix this problem.

1reaction
mfriesencommented, Feb 23, 2018

@lukasoppermann I’ll take a look at the reinit problem. I should have caught that problem.

For the second part are you saying that once you drop the ‘copy’ on a valid target the item is pointing to the original parent?

The other thing I just noticed was that the data-item-sortable-id doesn’t change when moving items between 2 sortables. Is that ok?

Read more comments on GitHub >

github_iconTop Results From Across the Web

[SOLVED] Copy and Paste Not Working on Windows 10
Copy and paste not working properly on your Windows 10 PC? Here's the real fix! Try these fixes and make your broken copy-paste...
Read more >
How to Fix Copy and Paste Not Working in Windows
How to Fix Copy and Paste Not Working in Windows · 1. Update Windows · 2. Temporarily Disable Antivirus Software · 3. Run...
Read more >
Why Can't I Copy And Paste? How Do I Fix It - Tech News Today
Why Can't I Copy and Paste From the PDF ? · Go to File. · Click on Document Properties. · Click on Security...
Read more >
(Solved) Fix Copy Paste not Working on Windows 10 / 11
1] Press CTRL+ALT+DEL and select Task Manager from among the options. · 2] Go to details tab, · 3] check for the rdpclip.exe...
Read more >
Paste options - Microsoft Support
Paste options available in Excel. ... Important: When you copy and paste formulas, you might need to fix cell references. However, references are...
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