Skip to content
Discussion options

You must be logged in to vote

Just adding some more info so Ic an make this as answered:

I'd need a prop which would trigger rerender whenever panel collapsed state changes.

Use the onResize callback to update a variable in state or use the Panel ref to check isCollapsed

In the same time, I would need to keep the previous size value of my panel, so that triggering an "expand" would expand it back to its default value.

The library does this for you automatically when you call expand()

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@bvaughn
Comment options

Answer selected by bvaughn
@seedydocloop
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants