File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -48,8 +48,14 @@ function FixedHeader<RecordType>({
48
48
} ;
49
49
} , [ scrollbarSize , stickyOffsets ] ) ;
50
50
51
+ const cloneWidths : number [ ] = [ ] ;
52
+ for ( let i = 0 ; i < columCount ; i += 1 ) {
53
+ cloneWidths [ i ] = colWidths [ i ] ;
54
+ }
55
+ const columnWidthsReady = ! colWidths . every ( width => ! width ) ;
56
+
51
57
return (
52
- < table style = { { tableLayout : 'fixed' } } >
58
+ < table style = { { tableLayout : 'fixed' , visibility : columnWidthsReady ? null : 'hidden' } } >
53
59
< ColGroup colWidths = { [ ...colWidths , scrollbarSize ] } columCount = { columCount + 1 } />
54
60
< Header
55
61
{ ...props }
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ exports[`Table.Basic custom components renders fixed column and header correctly
78
78
style = " overflow-x: scroll; margin-bottom: -15px;"
79
79
>
80
80
<table
81
- style = " table-layout: fixed;"
81
+ style = " table-layout: fixed; visibility: hidden; "
82
82
>
83
83
<colgroup >
84
84
<col />
You can’t perform that action at this time.
0 commit comments