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

FeatureRequest: iron-collapse "opened" event #67

Closed
eximius313 opened this issue Oct 10, 2016 · 4 comments · Fixed by #68
Closed

FeatureRequest: iron-collapse "opened" event #67

eximius313 opened this issue Oct 10, 2016 · 4 comments · Fixed by #68
Labels

Comments

@eximius313
Copy link

Description

Please provide possibility of listening to "opened" and "closed" events

Expected outcome

Event is called when animation is finished

@valdrinkoshi
Copy link
Member

Hi @eximius313, you could leverage the iron-resize event that is fired as soon as the opening/closing is done http://jsbin.com/fosohi/1/edit?html,console,output

@eximius313
Copy link
Author

The problem is that iron-resize is also called for example every time I click inside an input field (which is inside my iron-collapse) even though it's already opened

@valdrinkoshi
Copy link
Member

Oh true, that happens because iron-collapse keeps listening at transitionend events, and paper-input animation triggers one of those...As a consequence it also fires an unnecessary iron-resize, which is a bug.

@eximius313
Copy link
Author

@valdrinkoshi
Do you have any idea when your bugfix is merged?

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

Successfully merging a pull request may close this issue.

2 participants