MOBILE-4362 core: Improve autoFocus animation

main
Noel De Martin 2023-10-19 13:12:09 +02:00
parent 59a8a1c3d9
commit 81d3ebe065
1 changed files with 4 additions and 0 deletions

View File

@ -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);
}