react-sortable-hoc icon indicating copy to clipboard operation
react-sortable-hoc copied to clipboard

The dragged element wasn't shown when using showModal() js function

Open shaharfreidenberg opened this issue 8 years ago • 4 comments
trafficstars

I tried using react-sortable-hoc in html dialog tag, but the dragged element wasn't shown when using showModal() js function on the dialog. It works without it. I tried using helperClass (z-index, position...) but it didn't work.

Thank You !

shaharfreidenberg avatar Jun 26 '17 08:06 shaharfreidenberg

@shaharfreidenberg add !important to your z-index and it works in modal as well

raviteja83 avatar Sep 25 '17 12:09 raviteja83

@raviteja83 is there a way to modify the react-sortable-hoc applied styling during the drag? That way we wouldn't need to use !important.

stephencweiss avatar Jul 08 '19 21:07 stephencweiss

@stephencweiss i've managed to solve this issue by adding the following css. My modal have the css class (modal-open) and the item being dragged is a img.

.modal-open > img { z-index: 1050; }

gabriellemos avatar Aug 01 '19 13:08 gabriellemos

@gabriellemos thanks!it works in antd.Modal

okane0307 avatar Apr 02 '21 03:04 okane0307