From b2767924de0372327f68ffb522723b15c1710ad7 Mon Sep 17 00:00:00 2001 From: Aakansha Doshi Date: Wed, 16 Feb 2022 15:41:35 +0530 Subject: [PATCH] feat: show group/group and link action in mobile (#4795) --- src/components/Actions.tsx | 6 +++--- src/element/Hyperlink.tsx | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/components/Actions.tsx b/src/components/Actions.tsx index 8d423571..21e15773 100644 --- a/src/components/Actions.tsx +++ b/src/components/Actions.tsx @@ -150,12 +150,12 @@ export const SelectedShapeActions = ({ )} - {!isMobile && !isEditing && targetElements.length > 0 && ( + {!isEditing && targetElements.length > 0 && (
{t("labels.actions")}
- {renderAction("duplicateSelection")} - {renderAction("deleteSelectedElements")} + {!isMobile && renderAction("duplicateSelection")} + {!isMobile && renderAction("deleteSelectedElements")} {renderAction("group")} {renderAction("ungroup")} {targetElements.length === 1 && renderAction("link")} diff --git a/src/element/Hyperlink.tsx b/src/element/Hyperlink.tsx index 02e6a45c..b07ac745 100644 --- a/src/element/Hyperlink.tsx +++ b/src/element/Hyperlink.tsx @@ -122,7 +122,8 @@ export const Hyperlink = ({ if ( appState.draggingElement || appState.resizingElement || - appState.isRotating + appState.isRotating || + appState.openMenu ) { return null; } @@ -248,6 +249,7 @@ export const actionLink = register({ appState: { ...appState, showHyperlinkPopup: "editor", + openMenu: null, }, commitToHistory: true, };