about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/components
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2020-08-21 14:14:28 +0200
committerThibaut Girka <thib@sitedethib.com>2020-08-30 16:31:02 +0200
commit45d1f34a3074782fb68d322cb90dc21b46744426 (patch)
tree2675e7d67071a5934f062d7532e66afe0e2d60bd /app/javascript/flavours/glitch/components
parent8c3c27bf063d648823da39a206be3efd285611ad (diff)
[Glitch] Fix scrolling issues when closing some dropdown menus
Port c7cfd4e67aedb38cba3ee452e18bd086e30e2e5d to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
Diffstat (limited to 'app/javascript/flavours/glitch/components')
-rw-r--r--app/javascript/flavours/glitch/components/dropdown_menu.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/components/dropdown_menu.js b/app/javascript/flavours/glitch/components/dropdown_menu.js
index 60ed859a3..e627ea51f 100644
--- a/app/javascript/flavours/glitch/components/dropdown_menu.js
+++ b/app/javascript/flavours/glitch/components/dropdown_menu.js
@@ -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);