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

On tree views when searching, entries stay collapsed when child elements match search

Open gianlucamateo opened this issue 7 years ago • 3 comments

Not sure if this is intended behavior, labelled as bug as to me it was unexpected.

Describe the bug When the child rows of a parent row in a tree view contain matches to a search item, the parent row is shown, but it is not expanded. The matching child row is therefore invisible until explicit expanding of the parent row.

To Reproduce Steps to reproduce the behavior:

  1. Create a tree view with enabled search, collapse top level rows
  2. Search for a term present in a child item
  3. See error

Expected behavior I expect search to make all matching items visible, including child items in tree views

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Google Chrome
  • Version: 75.0

gianlucamateo avatar Jun 13 '19 14:06 gianlucamateo

As a further bit of info, this Problem does not seem to exist on v1.28.2

gianlucamateo avatar Jun 18 '19 06:06 gianlucamateo

I have started work on this

gianlucamateo avatar Jun 25 '19 12:06 gianlucamateo

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 Jun 15 '20 17:06 stale[bot]