Skip to content

Commit

Permalink
Column Resizing (#2285)
Browse files Browse the repository at this point in the history
* Column Resizing enabled for table

* column resize fix
  • Loading branch information
dinesh-aot authored May 24, 2024
1 parent 0813ab5 commit a2f142e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ const MasterTrackTable = <TData extends MRT_RowData>({
}: MaterialReactTableProps<TData>) => {
const { initialState, state, icons, ...otherProps } = rest;
const [otherPropsData, setOtherPropsData] = useState(otherProps);

useEffect(() => {
setOtherPropsData(otherProps);
}, [columns, data]);
Expand All @@ -97,6 +96,7 @@ const MasterTrackTable = <TData extends MRT_RowData>({
data: data,
globalFilterFn: "contains",
enableHiding: false,
layoutMode: "grid",
enableGlobalFilter: false,
enableColumnResizing: true,
enableStickyHeader: true,
Expand Down

0 comments on commit a2f142e

Please sign in to comment.