googlearchive / paper-dialog

A dialog à la Material Design
19 stars 16 forks source link

Multiple modal dialogs #66

Open JMuratha opened 7 years ago

JMuratha commented 7 years ago

If you have multiple paper-dialog elements with modal=true then closing one dialog closes the backdrop, even if there are still paper-dialog elements open.

Possible fix:

remove this (in paper-dialog.html, near line 104, in function _renderClosed) if (this.withBackdrop) { this.backdropElement.close(); }

Backdrop will now be closed when no paper-dialog with backdrop is open.

hariprasadiit commented 7 years ago

facing the same problem.

@JMuratha workaround works fine. Instead of removing if (this.withBackdrop) { this.backdropElement.close(); } , i think it's better to close backdropElement if no dialogs are open. is it possible to check if there are any dialogs open?