react-spectrum icon indicating copy to clipboard operation
react-spectrum copied to clipboard

TableView fails to render the contents a row with a key of 0

Open landondavidson opened this issue 4 years ago โ€ข 0 comments

๐Ÿ› Bug Report

Using the number 0 as a key for a row will cause the row to be rendered, but without the content of that row

๐Ÿค” Expected Behavior

The row to render with contents

๐Ÿ˜ฏ Current Behavior

The row will render in the grid, but will not render any contents

๐Ÿ”ฆ Context

I was using the id of an object to render a table. When the id was 0 the row would not render its contents. I worked around this issue by converting the id to string before passing it to the TableView.

๐Ÿ’ป Code Sample

https://codesandbox.io/s/ecstatic-field-mubr8

๐ŸŒ Your Environment

Software Version(s)
react-spectrum 3.15.1
Browser Chrome 97
Operating System Mac OS 12.1

๐Ÿงข Your Company/Team

Adobe/Marketo

landondavidson avatar Feb 10 '22 21:02 landondavidson