Asked By: Anonymous
<paper-action-dialog id="firstRun" autoclosedisabled transition="core-transition-center"> <custom-form></custom-form> </paper-action-dialog>
currently i am using
document.querySelector('core-overlay-layer').classList.remove('core-opened'); it does close the dialog but it looks like that causes issues with any dialog you try to open after as well as causing issues with toasts. then you have to reload the app to correct the issues.
i really am not a big fan of the idea of closing the dialog when the user clicks submit just to open again if for any reason the submission fails.
thanks in advance
Answered By: Anonymous
Yes, just call close method like this.$.firstRun.close()
An example: https://github.com/Kalitte/polymer-router-demo/