Skip to content

Commit

Permalink
fix(modal): sheet modal dismisses correctly (#26110)
Browse files Browse the repository at this point in the history
resolves #26108
  • Loading branch information
liamdebeasi committed Oct 13, 2022
1 parent ff6df69 commit 256b03f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/components/modal/modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});

Expand Down

0 comments on commit 256b03f

Please sign in to comment.