#Is there a way to prevent the sidebar from resetting to its original/default position?
3 messages · Page 1 of 1 (latest)
bump
Quick search of "sidebar reset" here on Discord gives me this snippet.
Filament::registerRenderHook(
'scripts.end',
fn (): string => new HtmlString('<script>document.addEventListener("click", function(e) {if (e?.target?.closest("button,a")?.classList.contains("filament-tables-pagination-item")){window.scrollTo({top: 0, behavior: "smooth"});}});</script>'),
);