Fix scrolling issues when closing some dropdown menus (#14606)
This commit is contained in:
1 parent
9b2648b30a
commit
c7cfd4e67a
2 files changed
+3
-3
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user