Skip to content

Commit

Permalink
Merge pull request Expensify#31675 from dukenv0307/fix/30021
Browse files Browse the repository at this point in the history
Hide create menu when opening concierge chat by deeplink
  • Loading branch information
lakchote authored Dec 4, 2023
2 parents cc4add5 + ad3110f commit 7fef24c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ function FloatingActionButtonAndPopover(props) {
if (!isCreateMenuActive) {
return;
}
props.onHideCreateMenu();
setIsCreateMenuActive(false);
props.onHideCreateMenu();
},
// eslint-disable-next-line react-hooks/exhaustive-deps
[isCreateMenuActive],
Expand Down Expand Up @@ -182,7 +182,7 @@ function FloatingActionButtonAndPopover(props) {
<View>
<PopoverMenu
onClose={hideCreateMenu}
isVisible={isCreateMenuActive}
isVisible={isCreateMenuActive && (!props.isSmallScreenWidth || props.isFocused)}
anchorPosition={styles.createMenuPositionSidebar(props.windowHeight)}
onItemSelected={hideCreateMenu}
fromSidebarMediumScreen={!props.isSmallScreenWidth}
Expand Down

0 comments on commit 7fef24c

Please sign in to comment.