-
-
Notifications
You must be signed in to change notification settings - Fork 593
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
Why do collapsed rows remain in the DOM? #714
Comments
I am running into the same problem that this issue addresses, and that the associated pull request fixes, would love to see this addressed |
I ran into this problem while trying to apply striping too and was caught out because the :nth-child() selector did not work with :not() selector the way I had expected it too. It turns out for anyone looking to add striping to tables created with .rc-table-content > table > tbody > tr:nth-child(odd of .rc-table-row) > td {
background: yellow;
} This will ignore the expended rows (which have |
I'm having the same problem when collapsing a row with multiple children. The collapsed rows are still rendered. |
Collapsed rows (in nested tables) remain in the DOM, but with
style={display:none;}
. This creates a nasty issue if someone is trying to stripe their table with even-odd CSS rules (which is very common).Eg. https://table-react-component.vercel.app/demo/expanded-row-render
It seems like the fix would be to add the following to
ExpandedRow
:The text was updated successfully, but these errors were encountered: