You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, I'm trying to implement a pretty basic feature but I'm stuck for some reason. The idea is to let users drag an item onto a trash can to delete it. I already implemented dnd for moving items around and it works perfectly, all I did now was I added a second droppable and put the icon inside of it. For some reason though when I drop onto it, I get destination: null. It might have something to do with the width of each droppable. when the width of the draggable is smaller than the droppable, the destination is null?
Is there something I'm missing here? It could be a bug or maybe you're just supposed to use icons as droppables in a different way. And is width really an issue?
The text was updated successfully, but these errors were encountered:
lulious
changed the title
Destination null when dropping onto an smaller area
Destination null when dropping onto a smaller area
Mar 20, 2019
It might be an area thing: try dropping the center of the dragging item onto your trash bin. If that works, try increasing the space your trash bin Droppable element takes up, even if it is visually the same size
Bug or feature request?
Hey, I'm trying to implement a pretty basic feature but I'm stuck for some reason. The idea is to let users drag an item onto a trash can to delete it. I already implemented dnd for moving items around and it works perfectly, all I did now was I added a second droppable and put the icon inside of it. For some reason though when I drop onto it, I get destination: null. It might have something to do with the width of each droppable. when the width of the draggable is smaller than the droppable, the destination is null?
Is there something I'm missing here? It could be a bug or maybe you're just supposed to use icons as droppables in a different way. And is width really an issue?
The text was updated successfully, but these errors were encountered: