You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
No way to combine useResizeColumns with sticky Header in Material-UI table
#2700
Combining useResizeColumns with useFlexLayout or useBlockLayout causes the 'Sticky Header' prop of Material-UI Table to be ignored.
On one hand, adding useFlexLayout or useBlockLayout breaks the 'Sticky Header', on the other, column resizing isn't working without useFlexLayout or useBlockLayout...
In the codesandbox example, both useBlockLayout & useResizeColumns are set and the stickyHeader is ignored. Once useBlockLayout & useResizeColumns are commented out, the stickyHeader is working again.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Combining
useResizeColumnswithuseFlexLayoutoruseBlockLayoutcauses the 'Sticky Header' prop of Material-UI Table to be ignored.On one hand, adding
useFlexLayoutoruseBlockLayoutbreaks the 'Sticky Header', on the other, column resizing isn't working withoutuseFlexLayoutoruseBlockLayout...In the codesandbox example, both
useBlockLayout&useResizeColumnsare set and thestickyHeaderis ignored. OnceuseBlockLayout&useResizeColumnsare commented out, thestickyHeaderis working again.All reactions