carbon-addons-iot-react
carbon-addons-iot-react copied to clipboard
[Table] select all checkbox selected when data is empty
What package is this for?
- [x] React
- [ ] Angular
Describe the bug
The select all checkbox selected when data prop is an empty array in the StatefulTable.
To Reproduce
Steps to reproduce the behavior:
- Go to https://next.carbon-addons-iot-react.com/?path=/story/1-watson-iot-table--playground
- Click on tab "Selections & actions"
- Enable multi row selection (might need to deselect and select again in the knob options.hasRowSelection)
- Click on tab "Main view states" (aka "States" before #3333)
- Check the knob "Demo empty state (data)"
- See error
Please create a reduced test case in CodeSandbox: https://codesandbox.io/s/github/carbon-design-system/carbon-addons-iot-react/tree/next/packages/react/examples/codesandbox
Expected behavior
Checkbox should not be selected
Environment/versions:
- OS: [e.g. MacOS, Windows]
- Browser: [e.g. chrome, safari]
carbon-addons-iot-reactversion: [e.g.v2.60.0]
Additional context

Add any other context about the problem here.
Specific timeline issues / requests
Do you want this work within a specific time period? Is it related to an upcoming release?
NB: The core contributors will try to work with your timeline, but it's not guaranteed. The earlier you make a request in advance of a desired delivery date, the better!