diff --git a/src/components/datatable/DataTable.js b/src/components/datatable/DataTable.js index afcad829..1a63789d 100644 --- a/src/components/datatable/DataTable.js +++ b/src/components/datatable/DataTable.js @@ -177,6 +177,7 @@ function DataTable({ _columnsShow = _columnsShow.filter((col) => col !== changedColumn); } setColumnsShow(_columnsShow); + scrollToLastClicked() }, [columnsShow] ); @@ -282,7 +283,8 @@ function DataTable({ ); if (element) { - element.scrollIntoView(); + element.scrollIntoView({ behavior: 'smooth' }); + element.classList.add('show') } } },