fix: hide popup while resizing or dragging events (#249)

This commit is contained in:
Shariq Ansari 2022-01-11 11:55:05 +05:30 committed by GitHub
parent 8f0b83d27d
commit 3371a57ed0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -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({

View File

@ -64,5 +64,6 @@ export default class Popup {
hide() {
this.parent.style.opacity = 0;
this.parent.style.left = 0;
}
}