From 7225dcb2eafa1ece019787f418cf0677c83d6e39 Mon Sep 17 00:00:00 2001 From: gaurav soni Date: Mon, 24 Sep 2018 23:59:28 +0400 Subject: [PATCH] Update dragula.js Closes:#586 - Mirror image was getting added to the body, so the css was breaking. --- dragula.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dragula.js b/dragula.js index 4f732311..317d5292 100644 --- a/dragula.js +++ b/dragula.js @@ -429,6 +429,8 @@ function dragula (initialContainers, options) { _mirror.style.height = getRectHeight(rect) + 'px'; classes.rm(_mirror, 'gu-transit'); classes.add(_mirror, 'gu-mirror'); + // Fixes #586 , css issue + o.mirrorContainer = _item.parentNode; o.mirrorContainer.appendChild(_mirror); touchy(documentElement, 'add', 'mousemove', drag); classes.add(o.mirrorContainer, 'gu-unselectable');