Why is the cursor icon not changing on drag/drop ReactJS?

0

Issue

I am trying to drag child component it works good but i could not change the cursor icon.
I tried in child and parent, it changed with dragover(on parent) event but i dont want that icon. Do you have solutions?

Solution

Do not use drag and drop events for drag and drop. Use mouse events for changing cursor(and also drag and drop). Drag and drop events have different meaning for browsers like drag and drop files,images.

Answered By – mrbiyik

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave A Reply

Your email address will not be published.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More