Skip to content

Commit b4e2e96

Browse files
committed
Fix ghost element hiding
1 parent 170b623 commit b4e2e96

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/SortableContainer/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ export default function sortableContainer(WrappedComponent, config = {withRef: f
293293
if (hideSortableGhost) {
294294
this.sortableGhost = node;
295295
node.style.visibility = 'hidden';
296+
node.style.opacity = 0;
296297
}
297298

298299
this.minTranslate = {};
@@ -380,6 +381,7 @@ export default function sortableContainer(WrappedComponent, config = {withRef: f
380381

381382
if (hideSortableGhost && this.sortableGhost) {
382383
this.sortableGhost.style.visibility = '';
384+
this.sortableGhost.style.opacity = '';
383385
}
384386

385387
const nodes = this.manager.refs[collection];
@@ -597,6 +599,7 @@ export default function sortableContainer(WrappedComponent, config = {withRef: f
597599
*/
598600
this.sortableGhost = node;
599601
node.style.visibility = 'hidden';
602+
node.style.opacity = 0;
600603
}
601604
continue;
602605
}

0 commit comments

Comments
 (0)