From ec61901aa5f0c08b7b77029e225e81c19decbd60 Mon Sep 17 00:00:00 2001 From: Aman Harwara Date: Wed, 20 Sep 2023 20:52:01 +0530 Subject: [PATCH] fix: Fixed issue where using table or image option in Super mobile toolbar would make uninteractive --- .../Plugins/ToolbarPlugins/MobileToolbarPlugin.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/web/src/javascripts/Components/SuperEditor/Plugins/ToolbarPlugins/MobileToolbarPlugin.tsx b/packages/web/src/javascripts/Components/SuperEditor/Plugins/ToolbarPlugins/MobileToolbarPlugin.tsx index 81db5119b..47e53796f 100644 --- a/packages/web/src/javascripts/Components/SuperEditor/Plugins/ToolbarPlugins/MobileToolbarPlugin.tsx +++ b/packages/web/src/javascripts/Components/SuperEditor/Plugins/ToolbarPlugins/MobileToolbarPlugin.tsx @@ -372,17 +372,17 @@ const MobileToolbarPlugin = () => { }, [editor, updateEditorSelection]) const isFocusInEditorOrToolbar = isInEditor || isInToolbar || isInLinkEditor - if (!isMobile || !isFocusInEditorOrToolbar) { - return null - } return ( <> {modal} -
+
{isSelectionLink && (
@@ -406,7 +406,7 @@ const MobileToolbarPlugin = () => { return (