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

group.collapseAll() doesn't return a promise #32

Open
sammarland opened this issue Dec 22, 2016 · 0 comments
Open

group.collapseAll() doesn't return a promise #32

sammarland opened this issue Dec 22, 2016 · 0 comments
Assignees

Comments

@sammarland
Copy link

sammarland commented Dec 22, 2016

I have a use case where when I add a new panel to a panel group I want to collapse all panels except the newly added one. I tried to use the collapseAll() function but I can't because it doesn't return a promise which means I have a race condition. I have had to build my own array of promises from collapsing the output of the getOpen() function and then waiting for that to finish.

@B-3PO B-3PO self-assigned this Jan 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants