Skip to content

Commit 916b8af

Browse files
author
zyz104218
committed
fix: Resolve the issue of table header width collapsing and flashing during the initial rendering when setting sticky=true for a table with a large number of columns.
1 parent f921fdb commit 916b8af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FixedHolder/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ const FixedHolder = React.forwardRef<HTMLDivElement, FixedHeaderProps<unknown>>(
149149
<table
150150
style={{
151151
tableLayout: 'fixed',
152-
visibility: noData || mergedColumnWidth ? null : 'hidden',
152+
visibility: mergedColumnWidth ? null : 'hidden',
153153
}}
154154
>
155155
{(!noData || !maxContentScroll || allFlattenColumnsWithWidth) && (

0 commit comments

Comments
 (0)