-
-
Notifications
You must be signed in to change notification settings - Fork 461
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Items disappear on drag #424
Comments
Hey, I have no idea why. I would guess the item is removed because it loses its original parent and is dropped on an invalid target. But this is a wild guess. Can you maybe provide a live version so that it can be tested? If you find any more infos that might be related, please add them here. |
It must be something to do with how I'm using it because I have the same configuration as my codepen (https://codepen.io/CWSites/pen/wjeNbb) and it doesn't have issues. I'm doing this on a React App and I have other libraries involved as well but I'm not certain where the underlying issue is. I sent you a collaborator invite to a private repo of my code. It's happening for me when I'm running it locally so you shouldn't have to worry about setting up a server to run the app. |
Hey @lukasoppermann, I updated my code base a bit and I'm unable to reproduce this. Feel free to close it out as an edge case. |
Nice |
this seems to still be happening. on the examples page if you drag the first list item and drop it on the code block, it disappears. is there a way to disable this behavior? |
Hey @ammmir, true I can replicate this as well. This is a bug. Can you verify if this is new, aka did it change with one of the lastest updates? |
Hi, I also have this problem. For some reason, my items or not shifting as early as in your examples. I have to drag the mouse beyond the item for the placeholder to be placed at the new position, and if I drop the item at this position it all works like it should. But when I drop it above another item, the dragged item disappears. It, holds the I'm trying to reproduce it with your example file but with no luck till now. I'm mostly wondering why the items shift over at such a late moment. It might be something with using flex instead of float but I didn't find the problem yet unfortunately. Update: I fixed this bug for now by removing the display: none when sorting has stopped. |
Can be reproduced trivially on Edge (Windows 10) if you just use the demo (from the docs directory). I take any item (first item of first list suffices), drag it far up, and poof! there it goes. |
I've been playing around and it appears that items disappear if and only if the items are dragged outside of the droppable area. I noticed that when the items disappear, the drop event hadn't occurred. Conversely, if the eventlistener on 'drop' is disabled, ALL items disappear. And serialisation shows that they're still there (but invisible). |
Disclaimer: I am only playing with this for an hour or so. But I do think that I just fixed no less than three issues: lukasoppermann#424 and two issues that appear to be the same (@278 and lukasoppermann#163). But I tested on only one machine.
Looking at the git blame my guess is than the following two lines have vanished due to #777: |
Note: |
I'm opening this issue because:
When I drag an item to any area inside or outside of the wrapper it disappears from the screen. There are no console errors. This may be related to #278 although I'm not on an Android device.
supporting information:
How can the issue be reproduce the problem?
Click and drag any item, anywhere on the screen.
See screen recording here - https://www.dropbox.com/s/7i91kx4i9ercaww/html5sortable.mov?dl=0
My Code
The text was updated successfully, but these errors were encountered: