diff --git a/app/designer/features/topbar/breakpoints.tsx b/app/designer/features/topbar/breakpoints.tsx index bb3a2e1e9c..57b121eb1e 100644 --- a/app/designer/features/topbar/breakpoints.tsx +++ b/app/designer/features/topbar/breakpoints.tsx @@ -23,6 +23,7 @@ import { type EditableBreakpointProps = { breakpoint: Breakpoint; onChange: (breakpoint: Breakpoint) => void; + onFocus: () => void; }; const EditableBreakpoint = ({ @@ -39,7 +40,8 @@ const EditableBreakpoint = ({ event.stopPropagation(); const data = new FormData(event.currentTarget); const nextBreakpoint: Breakpoint = { - ref: breakpoint.ref, + ...breakpoint, + // @todo if label changed, we want to generate a ref name label: String(data.get("label")), minWidth: Number(data.get("minWidth")), }; @@ -47,11 +49,11 @@ const EditableBreakpoint = ({ }} onFocus={onFocus} > - + @@ -99,9 +102,11 @@ export const Breakpoints = ({ publish }: BreakpointsProps) => {