File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ const FixedHolder = React.forwardRef<HTMLDivElement, FixedHeaderProps<any>>((pro
156156
157157 const mergedColumnWidth = useColumnWidth ( colWidths , columCount ) ;
158158
159- const colGroupNode = useMemo ( ( ) => {
159+ const renderColGroup = ( ) => {
160160 // use original ColGroup if no data or no calculated column width, otherwise use calculated column width
161161 // Return original colGroup if no data, or mergedColumnWidth is empty, or all widths are falsy
162162 if (
@@ -174,13 +174,7 @@ const FixedHolder = React.forwardRef<HTMLDivElement, FixedHeaderProps<any>>((pro
174174 columns = { flattenColumnsWithScrollbar }
175175 />
176176 ) ;
177- } , [
178- noData ,
179- mergedColumnWidth ,
180- combinationScrollBarSize ,
181- columCount ,
182- flattenColumnsWithScrollbar ,
183- ] ) ;
177+ } ;
184178
185179 return (
186180 < div
@@ -202,7 +196,7 @@ const FixedHolder = React.forwardRef<HTMLDivElement, FixedHeaderProps<any>>((pro
202196 width : scrollX ,
203197 } }
204198 >
205- { colGroupNode }
199+ { renderColGroup ( ) }
206200 { children ( {
207201 ...restProps ,
208202 stickyOffsets : headerStickyOffsets ,
You can’t perform that action at this time.
0 commit comments