Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

close breakpoints menu when canvas clicked

Oleg Isonen1d24d5198390
diff --git a/app/designer/features/breakpoints/breakpoints.tsx b/app/designer/features/breakpoints/breakpoints.tsx
index a667bec0a2..9a3a7defb9 100644
--- a/app/designer/features/breakpoints/breakpoints.tsx
+++ b/app/designer/features/breakpoints/breakpoints.tsx
@@ -77,6 +77,10 @@ export const Breakpoints = ({ publish }: BreakpointsProps) => {
setIsOpen(true);
});
+ useSubscribe("clickCanvas", () => {
+ setIsOpen(false);
+ });
+
if (selectedBreakpoint === undefined) return null;
return (