From fffd88f6c00808e59ce5e1fff8fd27ac4c1a8a65 Mon Sep 17 00:00:00 2001 From: Bugra Firat Date: Fri, 5 Jun 2015 12:48:17 -0700 Subject: [PATCH] =?UTF-8?q?when=20using=20helpers,=20only=20add=20?= =?UTF-8?q?=E2=80=9Csv-visibility-hidden=E2=80=9D=20on=20move=20otherwise?= =?UTF-8?q?=20it=20causes=20the=20element=20to=20disappear=20on=20click,?= =?UTF-8?q?=20without=20the=20helper=20appearing.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/angular-sortable-view.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/angular-sortable-view.js b/src/angular-sortable-view.js index 808fe40..3326e44 100644 --- a/src/angular-sortable-view.js +++ b/src/angular-sortable-view.js @@ -417,7 +417,6 @@ 'left': clientRect.left + document.body.scrollLeft + 'px', 'top': clientRect.top + document.body.scrollTop + 'px' }); - target.addClass('sv-visibility-hidden'); } else{ clone = target.clone(); @@ -471,6 +470,9 @@ $element.parent().prepend(clone); moveExecuted = true; } + if(helper){ + target.addClass('sv-visibility-hidden'); + } $controllers[1].$moveUpdate(opts, { x: e.clientX, y: e.clientY,