Hi Chris,
In Firefox we need an additional step to get drag & drop working. FF needs the call to ev.dataTransfer.setData("text", null) on dragstart event.
Currently, this seems impossible to do with Blazor server-side. I already made some investigation almost one year ago.
The main problem seems to be that the ondragstart attribute must be used for Blazor's event handling and can no longer be used for a js call. When calling a JS function through interop and passing the DragEventArgs from Blazor the method setData cannot be called.
However, it would be great if you find another way to get it working.
Regards
Sven
Hi Chris,
In Firefox we need an additional step to get drag & drop working. FF needs the call to
ev.dataTransfer.setData("text", null)on dragstart event.Currently, this seems impossible to do with Blazor server-side. I already made some investigation almost one year ago.
The main problem seems to be that the
ondragstartattribute must be used for Blazor's event handling and can no longer be used for a js call. When calling a JS function through interop and passing theDragEventArgsfrom Blazor the methodsetDatacannot be called.However, it would be great if you find another way to get it working.
Regards
Sven