In case an mdDialog is shown, with
escapeToClose: true
and is then dismissed, any following next mdDialog with
escapeToClose: false
can still be closed when pressing the escape button.
Seems like key handler is not being unset.
Expected behaviour is given only in case the very first mdDialog since pageload is opened with escapeToClose: false.
Yes can reproduce, here's a little demo which shows that issue. http://codepen.io/DevVersion/pen/JGqBKG?editors=1011
@DevVersion Perfect example, that's exactly what I mean.
Possible duplicate of issue #5153,
However, that one may have gone unnoticed.
Got it fixed in #7222.
dialog seems to fail to close when
this.dialogRef.close();
is called. Should I file a new ticket? I _can tell it won't be closable_ because the buttons turn a different shade if it's closable vs. not closable.
Most helpful comment
Got it fixed in #7222.