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
Right now a user can drop anything into draggable-object-target, for example text or an image. Is there a way to check for this? So that only the things I allow can be dropped?
edit: I found an easy solution to my problem. I defined a property which is changed by dragStartHook/dragEndHook. And then I encapsuled my drop target in an if with the property, so only when I start dragging my object it actually enables the drop field
The text was updated successfully, but these errors were encountered:
If you select a few words of text from somewhere on the page on a Mac you're able to drag it into other apps and so on. If you drop it into the dropzone provided by this addon it triggers the above code with the selected text as the key, and throws the no obj for key string (not an Error, which makes debugging harder – #173).
My suggestion here is to change the default behaviour from throw-a-string to halt execution. Maybe just change the thrown string to a custom error object and catch it higher up.
This would be nice, as currently Bugsnag reports a new issue for every unexpected item dragged into the dropzone.
Right now a user can drop anything into draggable-object-target, for example text or an image. Is there a way to check for this? So that only the things I allow can be dropped?
edit: I found an easy solution to my problem. I defined a property which is changed by dragStartHook/dragEndHook. And then I encapsuled my drop target in an if with the property, so only when I start dragging my object it actually enables the drop field
The text was updated successfully, but these errors were encountered: