Fix Copy Option
See original GitHub issueHey @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 pressingesc
#313)
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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
After my pull requests are merged, I will extract the
to their own function. Then I believe I can fix this problem.
@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?