Skip to content

Commit 70e160c

Browse files
committed
refactor(overlays): use isPlatform
1 parent 9d1aae3 commit 70e160c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

core/src/utils/overlays.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import {
3232
removeEventListener,
3333
} from './helpers';
3434
import { printIonWarning } from './logging';
35+
import { isPlatform } from './platform';
3536

3637
let lastOverlayIndex = 0;
3738
let lastId = 0;
@@ -986,9 +987,7 @@ export const createTriggerController = () => {
986987
const hideAnimatingOverlayFromScreenReaders = (overlay: HTMLIonOverlayElement) => {
987988
if (doc === undefined) return;
988989

989-
const mode = getIonMode(overlay);
990-
991-
if (mode === 'md') {
990+
if (isPlatform('android')) {
992991
/**
993992
* Once the animation is complete, this attribute will be removed.
994993
* This is done at the end of the `present` method.

0 commit comments

Comments
 (0)