Skip to content

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

Open
@arif-js

Description

@arif-js

Issue Check list

  • Agree to the Code of Conduct
  • Read the README
  • You are using React 18.0+
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions