Skip to content

Commit

Permalink
fix: wrong fixedClassName
Browse files Browse the repository at this point in the history
  • Loading branch information
bestlyg committed Mar 20, 2024
1 parent 41a957f commit 07e5d97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/Table/table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ function Table<T extends unknown>(baseProps: TableProps<T>, ref: React.Ref<Table

useUpdate(() => {
setFixedColumnClassNames();
}, [data, hasFixedColumnLeft, hasFixedColumnRight]);
}, [data, hasFixedColumnLeft, hasFixedColumnRight, rtl]);

useImperativeHandle(ref, () => ({
getRootDomElement,
Expand Down Expand Up @@ -575,7 +575,7 @@ function Table<T extends unknown>(baseProps: TableProps<T>, ref: React.Ref<Table
table && resetTableClassName(table.classList);
}
}, 100),
[refTable.current, refTableBody.current, fixedHeader]
[refTable.current, refTableBody.current, fixedHeader, rtl]
);

function setFixedColumnClassNames() {
Expand Down

0 comments on commit 07e5d97

Please sign in to comment.