react-hexgrid icon indicating copy to clipboard operation
react-hexgrid copied to clipboard

Patch to make dnd work in firefox.

Open LeifAndersen opened this issue 3 years ago • 1 comments

NOTE: This patch is "not" ready to merge, I made this PR as a request for comments/improvements.

It seems like in firefox, svg elements will not have their onDragStart function called. They will, however have their onMouseDown function called. This patch adds a onMouseDown callback, but it also nulls the data stored in the dragging event. Since onMouseDown doesn't seem to let you add information to the drag store, I suspect a shadow store would need to be created in the component's react state.

LeifAndersen avatar Jan 05 '22 21:01 LeifAndersen

@LeifAndersen I released a new version 2.0.0-beta.2 of this library. Can you check if the issue persists?

jannikbuschke avatar Jul 03 '22 10:07 jannikbuschke