react-spectrum
react-spectrum copied to clipboard
TableView fails to render the contents a row with a key of 0
๐ 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