diff --git a/packages/nimble-components/src/modal/index.ts b/packages/nimble-components/src/modal/index.ts index f056d0c028..6d0a26a96d 100644 --- a/packages/nimble-components/src/modal/index.ts +++ b/packages/nimble-components/src/modal/index.ts @@ -104,7 +104,7 @@ export abstract class Modal extends FoundationElement { // - the browser implements dialogs with the CloseWatcher API, and // - the user presses ESC without first interacting with the dialog (e.g. clicking, scrolling), // the cancel event is not fired, but the close event still is, and the dialog just closes. - this.doResolveShow(UserDismissed); + this.finishClosing(UserDismissed); } }