fix: readonly bug

This commit is contained in:
Safwan Samsudeen 2025-01-08 15:35:47 +05:30
parent 65ea2377db
commit 521107412a

View File

@ -341,7 +341,6 @@ export default class Gantt {
}
bind_events() {
if (this.options.readonly) return;
this.bind_grid_click();
this.bind_holiday_labels();
this.bind_bar_events();
@ -1209,6 +1208,7 @@ export default class Gantt {
let $el = this.upperTexts.find(
(el) => el.textContent === current_upper,
);
console.log(this.current_date);
// Recalculate for smoother experience
this.current_date = date_utils.add(