Search code examples
javascripteventspolymerpaper-elements

Is there an "onOpen" event for paper-dialog?


Is there an "onOpen" event for paper-dialog? I would like to know when the dialog is fully "opened" and "closed", mostly for changing content when the dialog has finishing its opening animation.

Previously in Polymer 0.5 one can listen to the core-overlay-close-completed event for that. However it doesn't seem to be working in 1.0, even when I changed core-overlay to iron-overlay.


Solution

  • It appears to inherit iron-overlay-behavior which fires the iron-overlay-opened and iron-overlay-closed events.