react-data-table-component icon indicating copy to clipboard operation
react-data-table-component copied to clipboard

[BUG] Pre-selected disabled rows get unselected when Header checkbox is unchecked

Open arif-js opened this issue 1 year ago • 0 comments

Issue Check list

  • [x] Agree to the Code of Conduct
  • [x] Read the README
  • [x] You are using React 18.0+
  • [x] You installed styled-components
  • [ ] Include relevant code or preferably a code sandbox

Describe the bug

I have pre selected a row and pre disabled the same row, but when I uncheck the header select all checkbox, that row becomes unselected. That is unexpected, because I need that row to be selected and not changeable.

To Reproduce

Steps to reproduce the behavior:

  1. set these values selectableRows={selectableRows} onSelectedRowsChange={onSelectedRowsChange} selectableRowDisabled={selectableRowDisabled}
  2. Now uncheck the header column select all checkbox

Expected behavior

Even if the header row is unchecked, the preselected disabled row should not get unchecked

image

Versions (please complete the following information)

  • React (RDT requires 18+)
  • Styled Components
  • OS: [e.g. iOS]
  • Browser: chrome, safari

arif-js avatar Oct 15 '24 09:10 arif-js