material-table icon indicating copy to clipboard operation
material-table copied to clipboard

Nested expanded rows collapses on selection

Open ozandogrultan opened this issue 7 years ago • 12 comments

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

ozandogrultan avatar Apr 22 '19 15:04 ozandogrultan

Please upgrade to 1.34.0

mbrn avatar May 02 '19 04:05 mbrn

@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"

GienekGenin avatar May 08 '19 08:05 GienekGenin

Hi @GienekGenin,

I will look at this asap.

mbrn avatar May 09 '19 04:05 mbrn

Was this ever resolved?

theodore-koch avatar Jul 29 '19 18:07 theodore-koch

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.

benjaminvdb avatar Aug 01 '19 14:08 benjaminvdb

Up

v1nns avatar Aug 02 '19 19:08 v1nns

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

raph90 avatar Aug 08 '19 10:08 raph90

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

ekaradev avatar Aug 08 '19 14:08 ekaradev

any news?

ruthwe avatar Sep 04 '19 10:09 ruthwe

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)

lsansaa avatar Nov 25 '19 14:11 lsansaa

Any update about it?

v1nns avatar Feb 07 '20 11:02 v1nns

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.

stale[bot] avatar Jul 05 '20 22:07 stale[bot]