forked from EVOgeek/Vmeda.Online
		
	MOBILE-4362 core: Improve autoFocus animation
This commit is contained in:
		
							parent
							
								
									59a8a1c3d9
								
							
						
					
					
						commit
						81d3ebe065
					
				| @ -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); | ||||||
| 
 | 
 | ||||||
|     } |     } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user