diff options
author | Winnie Hellmann <winnie@gitlab.com> | 2019-08-23 14:40:56 +0300 |
---|---|---|
committer | Kushal Pandya <kushalspandya@gmail.com> | 2019-08-23 14:40:56 +0300 |
commit | 8d5fac4f56bb6c0d6625ea5f6364796a80196933 (patch) | |
tree | ea0caf0e67f8fe5b676ab83b1d4203b5040e0f3f /app/assets/javascripts | |
parent | 40295b25ab382f87f84e27a16f46be2345fe94c0 (diff) |
Hide duplicate board list while dragging
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r-- | app/assets/javascripts/test_utils/simulate_drag.js | 6 |
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; } |