div styles disappear while dragging elements

334 views Asked by At

Trying to create a draggable div, When click and drag the dropdown div css it should be hidden. When dragging finished div css should be shown again.Is there any way I can achieve this using CSS?

For drag and drop, I am using this library "react-sortable-hoc"

https://github.com/clauderic/react-sortable-hoc

On drag click this className st-drag-icon should be called.

code snippet: (some error on code compile)

https://codesandbox.io/s/zen-cerf-cwfgl

Issue Video:

https://drive.google.com/file/d/12nUf_-PXH2BPWnHcsXlnOoBbtOFzwpee/view?usp=sharing

I would also be very appreciative to know why this happens and any other tips one may have.

Hope this help you !

0

There are 0 answers