Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
4 of 5 tasks
arif-js opened this issue Oct 15, 2024 · 0 comments
Open
4 of 5 tasks

Comments

@arif-js
Copy link

arif-js commented Oct 15, 2024

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
@arif-js arif-js changed the title [DESCRIPTION] Pre-selected disabled rows get unselected when Header checkbox is unchecked [BUG] Pre-selected disabled rows get unselected when Header checkbox is unchecked Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant