fix(modal): sheet modal dismisses correctly (#26110)

resolves #26108
This commit is contained in:
Liam DeBeasi
2022-10-13 08:58:06 -05:00
committed by GitHub
parent ff6df69a67
commit 256b03f12a

View File

@ -708,7 +708,7 @@ export class Modal implements ComponentInterface, OverlayInterface {
this.currentTransition = dismiss(this, data, role, 'modalLeave', iosLeaveAnimation, mdLeaveAnimation, {
presentingEl: this.presentingElement,
currentBreakpoint: this.currentBreakpoint !== undefined || this.initialBreakpoint,
currentBreakpoint: this.currentBreakpoint ?? this.initialBreakpoint,
backdropBreakpoint: this.backdropBreakpoint,
});