We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cc6992 commit 29a3a32Copy full SHA for 29a3a32
examples/react/virtualized-rows-experimental/src/main.tsx
@@ -263,7 +263,7 @@ function TableBodyRow({
263
<tr
264
data-index={virtualRowIndex} // needed for dynamic row height measurement
265
ref={node => {
266
- if (node && virtualRowIndex) {
+ if (node && typeof virtualRowIndex !== 'undefined') {
267
rowVirtualizer.measureElement(node) // measure dynamic row height
268
rowRefsMap.current.set(virtualRowIndex, node) // store ref for virtualizer to apply scrolling transforms
269
}
0 commit comments