Open reply dialog should be executed even if overlay failed

Reject promise if gr-overlay failed to resolve

Bug: Issue 10774
Bug: Issue 12180
Change-Id: I0db37e64245aecc2672999b4de108f308bb0fc11
This commit is contained in:
Tao Zhou
2020-02-03 09:17:03 +01:00
parent 9b020576bf
commit 7b3252693b
2 changed files with 6 additions and 9 deletions

View File

@@ -1260,7 +1260,8 @@
* @param {string=} opt_section
*/
_openReplyDialog(opt_section) {
this.$.replyOverlay.open().then(() => {
this.$.replyOverlay.open().finally(() => {
// the following code should be executed no matter open succeed or not
this._resetReplyOverlayFocusStops();
this.$.replyDialog.open(opt_section);
Polymer.dom.flush();