From 4ec3e02e7338f7df6bcef02aade3a85d5f65ff3f Mon Sep 17 00:00:00 2001 From: RoroTheShark Date: Thu, 17 Feb 2022 09:18:32 +0100 Subject: [PATCH] Initialization of the variable bar_progress Initialization of the variable bar_progress after the use of progress. Case : change the progress of a bar. And after, move or change date of another bar. And the event "progress" will be called. --- dist/frappe-gantt.js | 1 + 1 file changed, 1 insertion(+) diff --git a/dist/frappe-gantt.js b/dist/frappe-gantt.js index d7693c6a..13146b54 100644 --- a/dist/frappe-gantt.js +++ b/dist/frappe-gantt.js @@ -1819,6 +1819,7 @@ class Gantt { if (!($bar_progress && $bar_progress.finaldx)) return; bar.progress_changed(); bar.set_action_completed(); + $bar_progress = null; }); }