@@ -151,7 +151,7 @@ export const VirtualTableBody = (props: VirtualTableBodyProps) => {
151151 lastNonEmptyRow . current = row ;
152152 }
153153 prepareRow ( row ) ;
154- const rowProps = row . getRowProps ( {
154+ const { key , ... rowProps } = row . getRowProps ( {
155155 'aria-rowindex' : virtualRow . index + 1 ,
156156 'data-virtual-row-index' : virtualRow . index
157157 } ) ;
@@ -190,8 +190,8 @@ export const VirtualTableBody = (props: VirtualTableBodyProps) => {
190190 : rowVirtualizer . measureElement ;
191191
192192 return (
193- // eslint-disable-next-line react/jsx-key
194193 < div
194+ key = { key }
195195 { ...rowProps }
196196 ref = { measureRef }
197197 style = { {
@@ -227,7 +227,7 @@ export const VirtualTableBody = (props: VirtualTableBodyProps) => {
227227 if ( ! cell ) {
228228 return null ;
229229 }
230- const cellProps = cell . getCellProps ( ) ;
230+ const { key , ... cellProps } = cell . getCellProps ( ) ;
231231 const allCellProps = {
232232 ...cellProps ,
233233 [ 'data-visible-column-index' ] : visibleColumnIndex ,
@@ -269,8 +269,11 @@ export const VirtualTableBody = (props: VirtualTableBodyProps) => {
269269 }
270270
271271 return (
272- // eslint-disable-next-line react/jsx-key
273- < div { ...allCellProps } data-selection-cell = { cell . column . id === '__ui5wcr__internal_selection_column' } >
272+ < div
273+ key = { key }
274+ { ...allCellProps }
275+ data-selection-cell = { cell . column . id === '__ui5wcr__internal_selection_column' }
276+ >
274277 { popInRowHeight !== internalRowHeight && popInColumn . id === cell . column . id
275278 ? cell . render ( 'PopIn' , { contentToRender, internalRowHeight } )
276279 : cell . render ( contentToRender , isNavigatedCell === true ? { isNavigatedCell } : { } ) }
0 commit comments