Why does setting a maxHeight
for muiTableProps
interfere with sticky header?
#969
-
I encountered an issue in which I had specified I'm not posting this as a GitHub Issue because the problem is avoided by switching from
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@imnasnainaec It's simply because you should only be adding a max-height on the table conatiner div instead of the muiTableContainerProps: { sx: { maxHeight: "400px" } }, is the proper way to add a max-height to the table |
Beta Was this translation helpful? Give feedback.
@imnasnainaec It's simply because you should only be adding a max-height on the table conatiner div instead of the
<table>
element itself.is the proper way to add a max-height to the table