Fix scrolling issues when closing some dropdown menus (#14606)
This commit is contained in:
		
					parent
					
						
							
								9b2648b30a
							
						
					
				
			
			
				commit
				
					
						c7cfd4e67a
					
				
			
		
					 2 changed files with 3 additions and 3 deletions
				
			
		|  | @ -205,7 +205,7 @@ export default class Dropdown extends React.PureComponent { | |||
| 
 | ||||
|   handleClose = () => { | ||||
|     if (this.activeElement) { | ||||
|       this.activeElement.focus(); | ||||
|       this.activeElement.focus({ preventScroll: true }); | ||||
|       this.activeElement = null; | ||||
|     } | ||||
|     this.props.onClose(this.state.id); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue