From 3a2bae4882b9e0019d837876df320f811de8362e Mon Sep 17 00:00:00 2001 From: miroslav Date: Thu, 1 Dec 2022 05:38:09 +0100 Subject: [PATCH] fix "FAB menu and sidebar can be opened at the same time" --- .../sidebar/SidebarScreen/FloatingActionButtonAndPopover.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.js b/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.js index 465902df23d0..6fe0447ef495 100644 --- a/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.js +++ b/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.js @@ -147,8 +147,7 @@ class FloatingActionButtonAndPopover extends React.Component { * - Selecting an item on CreateMenu or closing it by clicking outside of the modal component */ hideCreateMenu() { - if (this.isScreenInactive()) { - // Prevent showing menu when click FAB icon quickly after opening other pages + if (!this.state.isCreateMenuActive) { return; } this.props.onHideCreateMenu();