Skip to content
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

Change onReset callback logic #714

Open
OliverWall opened this issue Oct 12, 2023 · 2 comments
Open

Change onReset callback logic #714

OliverWall opened this issue Oct 12, 2023 · 2 comments

Comments

@OliverWall
Copy link

Hi.
Could you change the logic of the onReset callback. I expect that it will reset the panel size to default, but the callback will be called after the reset occurs. This is useful if we are storing panel values in localStorage and I need to know what value should be reset. It would also be cool to pass sizes like onDragEnd

https://github.com/johnwalley/allotment/blob/main/src/allotment.tsx#L182

@bboure
Copy link

bboure commented Feb 1, 2024

I have the same use case. I also expected the panes to be resized and onReset() called with the new sizes.

@riazus
Copy link

riazus commented May 15, 2024

The same problem. Are there updates of this issue?

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

3 participants