Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/RC-0.15' into RC-0.15
Browse files Browse the repository at this point in the history
  • Loading branch information
mblajek committed Oct 17, 2024
2 parents 0e9f1f3 + fa86f8e commit 837d1dc
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,13 @@ export const TableColumnVisibilityController: VoidComponent = () => {
<Button
class="self-center"
onClick={() => {
document
.querySelector(`[data-header-for-column="${column.id}"]`)
?.scrollIntoView({inline: "center", behavior: "smooth"});
const header = document.querySelector(`[data-header-for-column="${column.id}"]`);
header?.scrollIntoView({inline: "center", behavior: "smooth"});
header?.animate([{}, {backgroundColor: "var(--tc-select)"}], {
direction: "alternate",
duration: 230,
iterations: 6,
});
props.popOver.close();
}}
title={t("tables.scroll_to_column")}
Expand Down

0 comments on commit 837d1dc

Please sign in to comment.