Skip to content

Commit 95c5314

Browse files
committed
chore: ran build
1 parent 4970471 commit 95c5314

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

core/api.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1086,6 +1086,7 @@ ion-modal,prop,leaveAnimation,((baseEl: any, opts?: any) => Animation) | undefin
10861086
ion-modal,prop,mode,"ios" | "md",undefined,false,false
10871087
ion-modal,prop,presentingElement,HTMLElement | undefined,undefined,false,false
10881088
ion-modal,prop,showBackdrop,boolean,true,false,false
1089+
ion-modal,prop,snapBreakpoints,number[] | undefined,undefined,false,false
10891090
ion-modal,prop,trigger,string | undefined,undefined,false,false
10901091
ion-modal,method,dismiss,dismiss(data?: any, role?: string) => Promise<boolean>
10911092
ion-modal,method,getCurrentBreakpoint,getCurrentBreakpoint() => Promise<number | undefined>

core/src/components/modal/gestures/sheet.ts

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export const createSheetGesture = (
7575
BACKDROP_KEYFRAMES: backdropBreakpoint !== 0 ? customBackdrop : defaultBackdrop,
7676
CONTENT_KEYFRAMES: [
7777
{ offset: 0, maxHeight: '100%' },
78-
{ offset: 1, maxHeight: '0%'},
78+
{ offset: 1, maxHeight: '0%' },
7979
],
8080
};
8181

@@ -91,11 +91,12 @@ export const createSheetGesture = (
9191
const backdropAnimation = animation.childAnimations.find((ani) => ani.id === 'backdropAnimation');
9292
let contentAnimation: Animation | undefined;
9393
if (snapBreakpoints.length > 0) {
94-
contentAnimation =
95-
animation.addAnimation(
96-
createAnimation('contentAnimation')
97-
.addElement(contentEl!.parentElement!)
98-
.keyframes(SheetDefaults.CONTENT_KEYFRAMES))
94+
contentAnimation = animation
95+
.addAnimation(
96+
createAnimation('contentAnimation')
97+
.addElement(contentEl!.parentElement!)
98+
.keyframes(SheetDefaults.CONTENT_KEYFRAMES)
99+
)
99100
.childAnimations.find((ani) => ani.id === 'contentAnimation');
100101
}
101102

@@ -374,7 +375,10 @@ export const createSheetGesture = (
374375
* re-enabled. Native iOS allows for scrolling on the sheet modal as soon
375376
* as the gesture is released, so we align with that.
376377
*/
377-
if (contentEl && (snapToBreakpoint === breakpoints[breakpoints.length - 1] || snapBreakpoints.includes(snapToBreakpoint))) {
378+
if (
379+
contentEl &&
380+
(snapToBreakpoint === breakpoints[breakpoints.length - 1] || snapBreakpoints.includes(snapToBreakpoint))
381+
) {
378382
contentEl.scrollY = true;
379383
}
380384

core/src/components/modal/modal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export class Modal implements ComponentInterface, OverlayInterface {
142142
* The difference between `breakpoints` and `snapBreakpoints` is that `snapBreakpoints`
143143
* allows the content to scroll, and the modal will only be draggable by the handle.
144144
*/
145-
@Prop() snapBreakpoints?: number[];
145+
@Prop() snapBreakpoints?: number[];
146146

147147
/**
148148
* A decimal value between 0 and 1 that indicates the

0 commit comments

Comments
 (0)