From feaadc82768fb8a2e3f713891712f00027940a76 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Thu, 14 Dec 2023 00:07:52 -0500 Subject: [PATCH] fix: Unable to use CMD+K link toolbar without selection --- app/editor/components/FloatingToolbar.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/editor/components/FloatingToolbar.tsx b/app/editor/components/FloatingToolbar.tsx index 12895400c..7f55010c3 100644 --- a/app/editor/components/FloatingToolbar.tsx +++ b/app/editor/components/FloatingToolbar.tsx @@ -213,11 +213,11 @@ const FloatingToolbar = React.forwardRef(function FloatingToolbar_( const isMobile = useMobile(); const { height } = useWindowSize(); - if (!props.children) { - return null; - } - if (isMobile) { + if (!props.children) { + return null; + } + if (props.active) { const rect = document.body.getBoundingClientRect(); return (