-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
[Table] TableRow selected acts like defaultSelected #6006
Comments
Looking at the implementation, the "selected" property are only calculated once when the TableBody component will be mounted, so the "selected" property of TableRow does not reflect the changes. Poor implementation! |
I just had a workaround for this.
I am not sure this will cause bad performance or not. |
Same problem here. It started after upgrading to |
I found the cause of the error at line 131 in
When i change that code with the code in version 0.16.6. It worked with me!
|
@mquandvr Thank you for the fix, I think you should make a PR, because, at least for me, this is a serious issue, and still present in 0.17. |
Any reason why the pull request for this issue is still Open? |
When i change that code
|
Same problem with the {selected} value not being respected consistently I got round by assigning different table keys for each render
|
Problem description
It is maybe my misunderstanding, but the TableRow doesn't respect the
selected
prop.try following code snippet, I can select any row no matter I set a static
false
.It looks like a
defaultSelected
behavior, notselected
Versions
The text was updated successfully, but these errors were encountered: