mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(md): do not display blank screen when using MD page transition and swipe gesture (#21058)
fixes #21056
This commit is contained in:
@@ -50,6 +50,11 @@ export const mdTransitionAnimation = (_: HTMLElement, opts: TransitionOptions):
|
||||
const leavingPage = createAnimation();
|
||||
leavingPage
|
||||
.addElement(getIonPageElement(leavingEl))
|
||||
.onFinish(currentStep => {
|
||||
if (currentStep === 1 && leavingPage.elements.length > 0) {
|
||||
leavingPage.elements[0].style.setProperty('display', 'none');
|
||||
}
|
||||
})
|
||||
.afterStyles({ 'display': 'none' })
|
||||
.fromTo('transform', `translateY(${CENTER})`, `translateY(${OFF_BOTTOM})`)
|
||||
.fromTo('opacity', 1, 0);
|
||||
|
||||
Reference in New Issue
Block a user