Skip to content

Commit

Permalink
solved the issue 1606 and 1607
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel-C-Johnson committed Oct 5, 2023
1 parent 8fae853 commit 2ed304a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/datatable/DataTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ function DataTable({
_columnsShow = _columnsShow.filter((col) => col !== changedColumn);
}
setColumnsShow(_columnsShow);
scrollToLastClicked()
},
[columnsShow]
);
Expand Down Expand Up @@ -282,7 +283,8 @@ function DataTable({
);

if (element) {
element.scrollIntoView();
element.scrollIntoView({ behavior: 'smooth' });
element.classList.add('show')
}
}
},
Expand Down

0 comments on commit 2ed304a

Please sign in to comment.