diff --git a/src/core/directives/auto-focus.ts b/src/core/directives/auto-focus.ts index d84252ad6..48071cd1b 100644 --- a/src/core/directives/auto-focus.ts +++ b/src/core/directives/auto-focus.ts @@ -49,6 +49,10 @@ export class CoreAutoFocusDirective implements AfterViewInit { await CoreDom.waitToBeInDOM(this.element); + // Wait in case there is an animation to enter the page, otherwise the interaction + // between the keyboard appearing and the animation causes a visual glitch. + await CoreUtils.wait(540); + CoreDomUtils.focusElement(this.element); }