diff --git a/dist/frappe-gantt.js b/dist/frappe-gantt.js index a58faac0..0abd52aa 100644 --- a/dist/frappe-gantt.js +++ b/dist/frappe-gantt.js @@ -730,6 +730,7 @@ var Gantt = (function () { progress_changed() { const new_progress = this.compute_progress(); + if (this.task.progress === new_progress) return; this.task.progress = new_progress; this.gantt.trigger_event('progress_change', [this.task, new_progress]); } diff --git a/src/index.js b/src/index.js index 6d005afa..e1022fa9 100644 --- a/src/index.js +++ b/src/index.js @@ -801,6 +801,7 @@ export default class Gantt { if (!($bar_progress && $bar_progress.finaldx)) return; bar.progress_changed(); bar.set_action_completed(); + $bar_progress.finaldx = 0; }); }