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

rowsSelected does not work in version 2.7.0 #817

Closed
PovilasSlekys opened this issue Aug 7, 2019 · 2 comments · Fixed by #818
Closed

rowsSelected does not work in version 2.7.0 #817

PovilasSlekys opened this issue Aug 7, 2019 · 2 comments · Fixed by #818
Assignees
Labels

Comments

@PovilasSlekys
Copy link

Updated from version 2.6.2 to 2.7.0 to find rowsSelected does not work as before.

Expected Behavior

In 2.6.2 providing rowsSelected would select the provided rows when rendering the datatable.

Current Behavior

In 2.7.0 the provided rowsSelected option is ignored and no rows are selected.

Minimal code example for reference:

https://codesandbox.io/s/muidatatables-example-1p637

@gabrielliwerant gabrielliwerant self-assigned this Aug 7, 2019
@gabrielliwerant
Copy link
Collaborator

gabrielliwerant commented Aug 7, 2019

Yes, there is a regression here, thanks for pointing that out! I will work on a fix.

@gabrielliwerant
Copy link
Collaborator

The issue should be fixed here #818 and will be in the next release. Until then, if you want to upgrade to the latest version immediately but have working behavior with this feature, then you can supply the selectableRows option in your options object. The bug only exists when none is specified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants