diff --git a/src/core/Resources/assets/js/modules/sidebar.js b/src/core/Resources/assets/js/modules/sidebar.js index fe0bf16..317be33 100644 --- a/src/core/Resources/assets/js/modules/sidebar.js +++ b/src/core/Resources/assets/js/modules/sidebar.js @@ -24,7 +24,10 @@ const Sidebar = () => { }) if (currentItem) { - stickyMenu.scroll({top: localStorage.getItem('sidebar-item-top') ?? 0}) + stickyMenu.scrollTo({ + top: localStorage.getItem('sidebar-item-top') ?? 0, + behavior: 'smooth' + }) } }