@@ -75,11 +75,7 @@ export const createSheetGesture = (
7575 CONTENT_KEYFRAMES : [
7676 { offset : 0 , maxHeight : '100%' } ,
7777 { offset : 1 , maxHeight : '0%' } ,
78- ] ,
79- FOOTER_KEYFRAMES : [
80- { offset : 0 , transform : `translateY(0)` } ,
81- { offset : 1 , transform : `translateY(-${ wrapperEl . clientHeight } px)` } ,
82- ] ,
78+ ]
8379 } ;
8480
8581 const contentEl = baseEl . querySelector ( 'ion-content' ) ;
@@ -93,7 +89,7 @@ export const createSheetGesture = (
9389 const wrapperAnimation = animation . childAnimations . find ( ( ani ) => ani . id === 'wrapperAnimation' ) ;
9490 const backdropAnimation = animation . childAnimations . find ( ( ani ) => ani . id === 'backdropAnimation' ) ;
9591 const contentAnimation = animation . childAnimations . find ( ( ani ) => ani . id === 'contentAnimation' ) ;
96- const footerAnimation = animation . childAnimations . find ( ( ani ) => ani . id === 'footerAnimation' ) ;
92+ animation . childAnimations . find ( ( ani ) => ani . id === 'footerAnimation' ) ?. destroy ( ) ;
9793
9894 const enableBackdrop = ( ) => {
9995 baseEl . style . setProperty ( 'pointer-events' , 'auto' ) ;
@@ -133,7 +129,6 @@ export const createSheetGesture = (
133129 wrapperAnimation . keyframes ( [ ...SheetDefaults . WRAPPER_KEYFRAMES ] ) ;
134130 backdropAnimation . keyframes ( [ ...SheetDefaults . BACKDROP_KEYFRAMES ] ) ;
135131 contentAnimation ?. keyframes ( [ ...SheetDefaults . CONTENT_KEYFRAMES ] ) ;
136- footerAnimation ?. keyframes ( [ ...SheetDefaults . FOOTER_KEYFRAMES ] ) ;
137132
138133 animation . progressStart ( true , 1 - currentBreakpoint ) ;
139134
@@ -345,7 +340,7 @@ export const createSheetGesture = (
345340 } ,
346341 ] ) ;
347342
348- if ( contentAnimation && footerAnimation ) {
343+ if ( contentAnimation ) {
349344 /**
350345 * The modal content should scroll at any breakpoint when scrollAtEdge
351346 * is disabled. In order to do this, the content needs to be completely
@@ -357,11 +352,6 @@ export const createSheetGesture = (
357352 { offset : 0 , maxHeight : `${ ( 1 - breakpointOffset ) * 100 } %` } ,
358353 { offset : 1 , maxHeight : `${ snapToBreakpoint * 100 } %` } ,
359354 ] ) ;
360-
361- footerAnimation . keyframes ( [
362- { offset : 0 , transform : `translateY(-${ height * ( breakpointOffset ) } px)` } ,
363- { offset : 1 , transform : `translateY(-${ height * ( 1 - snapToBreakpoint ) } px)` } ,
364- ] )
365355 }
366356
367357 animation . progressStep ( 0 ) ;
@@ -408,7 +398,6 @@ export const createSheetGesture = (
408398 wrapperAnimation . keyframes ( [ ...SheetDefaults . WRAPPER_KEYFRAMES ] ) ;
409399 backdropAnimation . keyframes ( [ ...SheetDefaults . BACKDROP_KEYFRAMES ] ) ;
410400 contentAnimation ?. keyframes ( [ ...SheetDefaults . CONTENT_KEYFRAMES ] ) ;
411- footerAnimation ?. keyframes ( [ ...SheetDefaults . FOOTER_KEYFRAMES ] ) ;
412401 animation . progressStart ( true , 1 - snapToBreakpoint ) ;
413402 currentBreakpoint = snapToBreakpoint ;
414403 onBreakpointChange ( currentBreakpoint ) ;
0 commit comments