Search code examples
mdcmaterial-componentsmdc-components

mdc closes all nested dialogs instead of the active dialog


I try to open a mdc-dialog inside a mdc-dialog. When closing the second dialog, material-components-web closes both dialogs, instead of returning back to the underlying dialog (first dialog). See the example on codepen.io.

Is that a bug or do I missed something?


Solution

  • After analysing the source code of mdc-dialog I'm pretty sure, that it is a bug. Just opened a new bug on github for material-components-web