Merge pull request #3828 from NoelDeMartin/MOBILE-4362

MOBILE-4362 core: Improve autoFocus animation
main
Pau Ferrer Ocaña 2023-10-19 14:14:49 +02:00 committed by GitHub
commit 7186e7f1f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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); 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); CoreDomUtils.focusElement(this.element);
} }