Skip to content

Commit 2031ebb

Browse files
committed
refactor(overlays): move animating hide
1 parent ff0b38f commit 2031ebb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/src/utils/overlays.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,6 @@ export const present = async <OverlayPresentOptions>(
524524
document.body.classList.add(BACKDROP_NO_SCROLL);
525525

526526
hideUnderlyingOverlaysFromScreenReaders(overlay.el);
527-
// hideAnimatingOverlayFromScreenReaders(overlay.el);
528527

529528
overlay.presented = true;
530529
overlay.willPresent.emit();
@@ -536,6 +535,8 @@ export const present = async <OverlayPresentOptions>(
536535
? overlay.enterAnimation
537536
: config.get(name, mode === 'ios' ? iosEnterAnimation : mdEnterAnimation);
538537

538+
hideAnimatingOverlayFromScreenReaders(overlay.el);
539+
539540
const completed = await overlayAnimation(overlay, animationBuilder, overlay.el, opts);
540541
if (completed) {
541542
overlay.didPresent.emit();

0 commit comments

Comments
 (0)