From 3371a57ed0b4dbec794355f049dc0531b1e4be42 Mon Sep 17 00:00:00 2001 From: Shariq Ansari <30859809+shariquerik@users.noreply.github.com> Date: Tue, 11 Jan 2022 11:55:05 +0530 Subject: [PATCH] fix: hide popup while resizing or dragging events (#249) --- src/index.js | 2 +- src/popup.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 9777096..68b6af1 100644 --- a/src/index.js +++ b/src/index.js @@ -699,7 +699,7 @@ export default class Gantt { bars.forEach(bar => { const $bar = bar.$bar; $bar.finaldx = this.get_snap_position(dx); - + this.hide_popup(); if (is_resizing_left) { if (parent_bar_id === bar.task.id) { bar.update_bar_position({ diff --git a/src/popup.js b/src/popup.js index 39552a5..e9e9314 100644 --- a/src/popup.js +++ b/src/popup.js @@ -64,5 +64,6 @@ export default class Popup { hide() { this.parent.style.opacity = 0; + this.parent.style.left = 0; } }