parent
							
								
									cc6b8a9615
								
							
						
					
					
						commit
						c813789e06
					
				| @ -66,7 +66,7 @@ export default class ModalRoot extends React.PureComponent { | |||||||
|       // immediately selectable, we have to wait for observers to run, as
 |       // immediately selectable, we have to wait for observers to run, as
 | ||||||
|       // described in https://github.com/WICG/inert#performance-and-gotchas
 |       // described in https://github.com/WICG/inert#performance-and-gotchas
 | ||||||
|       Promise.resolve().then(() => { |       Promise.resolve().then(() => { | ||||||
|         this.activeElement.focus(); |         this.activeElement.focus({ preventScroll: true }); | ||||||
|         this.activeElement = null; |         this.activeElement = null; | ||||||
|       }).catch((error) => { |       }).catch((error) => { | ||||||
|         console.error(error); |         console.error(error); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user