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.

fix: Fix adding a new breakpoint (#5610)

Oleg Isonen1088d82ff783
diff --git a/apps/builder/app/builder/features/breakpoints/breakpoints-editor.tsx b/apps/builder/app/builder/features/breakpoints/breakpoints-editor.tsx
index dc936e8cd8..d40a87f45f 100644
--- a/apps/builder/app/builder/features/breakpoints/breakpoints-editor.tsx
+++ b/apps/builder/app/builder/features/breakpoints/breakpoints-editor.tsx
@@ -217,6 +217,9 @@ export const BreakpointsEditor = ({
};
const handleOpenChange = (newOpen: boolean) => {
+ if (newOpen === false) {
+ setAddedBreakpoints([]);
+ }
onOpenChange?.(newOpen);
};