Skip to content

Collapse expandable row on route change #1378

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

Closed
JaxonDvl opened this issue Jun 6, 2017 · 2 comments
Closed

Collapse expandable row on route change #1378

JaxonDvl opened this issue Jun 6, 2017 · 2 comments

Comments

@JaxonDvl
Copy link

JaxonDvl commented Jun 6, 2017

Hello, I have an issue with the expandableRow Component. When I change the route the previously expanded rows remain expanded. Is it possible to collapse all when I change the route ?
When expanded:
screen shot 2017-06-06 at 11 33 58
When changed route and come back to the table:
screen shot 2017-06-06 at 11 34 25

@JaxonDvl
Copy link
Author

JaxonDvl commented Jun 7, 2017

Ok I found the answer for my problem by using
this.refs.table.reset()
#975 here

@JaxonDvl JaxonDvl closed this as completed Jun 7, 2017
@ufukomer
Copy link

@JaxonDvl So when do you run this function? componentDidMount ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants