I have templates for displaying task views, and I can also change their behavior using toggle.
useEffect(() => {
if (ganttContainerRef.current) {
gantt.plugins(BASIC_PLUGINS)
gantt.config = { ...gantt.config, ...config, ...editorsColumns }
gantt.templates = { ...gantt.templates, ...templates }
gantt.init(ganttContainerRef?.current)
}
}, [ganttContainerRef, config, templates, editorsColumns])
when I change the display of the template, I see them in the table, but the table does not remain in the same position as it was, but scrolls to the very beginning.
I also tried using gantt.resetLayout() but the behavior is the same.
How can I make the table remain in the same position and not scroll to the very beginning when changing templates?