Skip to content

Commit 42aa703

Browse files
committed
fix(modal): add missing parameter
1 parent b1726ec commit 42aa703

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

core/src/components/modal/modal-interface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export interface ModalAnimationOptions {
3131
presentingEl?: HTMLElement;
3232
currentBreakpoint?: number;
3333
backdropBreakpoint?: number;
34-
scrollAtEdge?: boolean;
34+
scrollAtEdge: boolean;
3535
}
3636

3737
export interface ModalBreakpointChangeEventDetail {

core/src/components/modal/modal.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,10 @@ export class Modal implements ComponentInterface, OverlayInterface {
628628
// should be in the DOM and referenced by now, except
629629
// for the presenting el
630630
const animationBuilder = this.leaveAnimation || config.get('modalLeave', iosLeaveAnimation);
631-
const ani = (this.animation = animationBuilder(el, { presentingEl: this.presentingElement }));
631+
const ani = (this.animation = animationBuilder(el, {
632+
presentingEl: this.presentingElement,
633+
scrollAtEdge: this.scrollAtEdge,
634+
}));
632635

633636
const contentEl = findIonContent(el);
634637
if (!contentEl) {

0 commit comments

Comments
 (0)