Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWinnie Hellmann <winnie@gitlab.com>2019-08-23 14:40:56 +0300
committerKushal Pandya <kushalspandya@gmail.com>2019-08-23 14:40:56 +0300
commit8d5fac4f56bb6c0d6625ea5f6364796a80196933 (patch)
treeea0caf0e67f8fe5b676ab83b1d4203b5040e0f3f /app/assets/javascripts/test_utils
parent40295b25ab382f87f84e27a16f46be2345fe94c0 (diff)
Hide duplicate board list while dragging
Diffstat (limited to 'app/assets/javascripts/test_utils')
-rw-r--r--app/assets/javascripts/test_utils/simulate_drag.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/assets/javascripts/test_utils/simulate_drag.js b/app/assets/javascripts/test_utils/simulate_drag.js
index be9ebc81c6b..c9bf234fcce 100644
--- a/app/assets/javascripts/test_utils/simulate_drag.js
+++ b/app/assets/javascripts/test_utils/simulate_drag.js
@@ -153,7 +153,11 @@ export default function simulateDrag(options) {
if (progress >= 1) {
if (options.ondragend) options.ondragend();
- simulateEvent(toEl, 'mouseup');
+
+ if (options.performDrop) {
+ simulateEvent(toEl, 'mouseup');
+ }
+
clearInterval(dragInterval);
window.SIMULATE_DRAG_ACTIVE = 0;
}