mi6 / mi6/ic-ui-kit

[ic-data-table] - select all rows does not clear when data updated

Open
#3,777 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
53
Forks
63
Avg merge
2d 4h
Merged PRs (30d)
15

Description

### Summary of the bug
If all rows are selected in the data table and the data is then updated, the select all box remains checked

### 🪜 How to reproduce
Tell us the steps to reproduce the problem:
1. Go to page: [stackblitz example](https://stackblitz.com/edit/abjzoffc-48uhfju8?file=src%2Fapp.jsx,package.json)
2. Check the select all box in the column header:

Image

3. Click the button to update the data
4. See that no rows are selected, but the checkbox in the header is still checked:
Image

### 🧐 Expected behaviour
The select all box should uncheck when data changes, if any of the rows are unselected

### 📝 Acceptance Criteria
If relevant, describe in full detail the different interactions and edge cases that the component or patterns needs to fulfil.

*Given* all rows in a data table are selected
*When* the data rows in the table change
*Then* the select all box should become unchecked if any of the new rows are unselected

### 🚨 Urgency (low, medium or high)
medium

Contributor guide

Open the contributing guide

Research direction

Start with the linked StackBlitz reproduction in src/app.jsx and package.json, then trace the data-table selection behavior in the repository. Verify the case where all existing rows are selected and the data changes; done means the header checkbox is unchecked whenever any new row is unselected.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.