fix: Unable to use CMD+K link toolbar without selection

This commit is contained in:
Tom Moor
2023-12-14 00:07:52 -05:00
parent b002310ce5
commit feaadc8276

View File

@@ -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 (