DataTable "Select All" overwrites previously selected #6946
Labels
bug
issue that does not match design or documentation and requires code changes to address
Data and friends
For data components in grommet
discussion
Needs deeper discussions
Expected Behavior
"Select All" should extend the currently selected set with newly selected. This behaviour is observed when selecting individual rows, so should be the same when selecting all rows.
Actual Behavior
"Select All" replaces the currently selected set.
URL, screen shot, or Codepen exhibiting the issue
https://codesandbox.io/s/grommet-filtered-datatable-3b37fe?file=/src/App.js
Steps to Reproduce
Go to the URL above
Select the first row in the table
Search for "CCCC" to get a disjoint set
Check "Select All" (overwrites currently selected)
Compare that with selecting individual rows. In this case the selections are additive.
### Your Environment
The text was updated successfully, but these errors were encountered: