Closed MikeMitterer closed 9 years ago
That's a valid point. I will have a look at that.
The fix adds a css class (dnd-invalid
by default) to dropzones when a not-accepted draggable is dragged over.
See it in action: http://marcojakob.github.io/dart-dnd/custom-acceptor/
First of all - Thanks for your package! It would be cool if you could add a way to add an indicator for an invalid (not allowed) Drop-Zone.
I tried it with my own Acceptor and it's possible to do something like this:
The problem with this approach is that dnd-invalid is set but never unset because an invalid drop-zone never gets onDragLeave... - so no way to remove the dnd-invalid class.