Material-table: Nested expanded rows collapses on selection

Created on 22 Apr 2019  路  12Comments  路  Source: mbrn/material-table

Describe the bug
Related issue #443 . Still not fixed for nested rows that have depth more than 1.

To Reproduce
Steps to reproduce the behavior:

  1. Render a table that is nested more than 1 level
  2. Select any nested child or parent row

Expected behavior
Row collapse/expand not triggered by selection.

Screenshots
Apr-22-2019 18-58-15

Desktop (please complete the following information):

  • OS: macOS
  • Browser Chrome
  • Version 1.32.0
bug wontfix

Most helpful comment

Hi , i am working on it
We will fixed it asap.

All 12 comments

Please upgrade to 1.34.0

@mbrn Still not fixed for nested rows that have depth more than 1.

BitStreamGoogleChrome20190

Desktop:
OS: Windows 10
Browser: Chrome
Version "material-table": "^1.36.1"

Hi @GienekGenin,

I will look at this asap.

Was this ever resolved?

select_collapse

I'm on version 1.41.0 and I'm having the same issue: the tree collapses whenever I select a row.

Still not fixed for nested rows that have depth more than 1.

As I show in the GIF image above, the same issue occurs with at depth = 1.

Up

Yikes we're all in the same boat... :(

Hi , i am working on it
We will fixed it asap.

any news?

Not sure if is related, but this happens with actions buttons if do something like showing a modal/dialog.

Is there a way to get the on click event of the expand button? Got an idea of how quick fix this, saving on a state the isTreeExpanded attribute of each row and then using it to render the row. The onTreeExpandChange event won't do the thing since it gets trigger after the row is rendered, not after clicking the button (Already try it with this one)

Any update about it?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You can reopen it if it required.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

balibou picture balibou  路  3Comments

terapepo picture terapepo  路  3Comments

slevy85 picture slevy85  路  3Comments

bohrsty picture bohrsty  路  3Comments

revskill10 picture revskill10  路  3Comments