diff --git a/editor/src/components/inspector/flex-section.tsx b/editor/src/components/inspector/flex-section.tsx index ea9ef2d445ad..5d27487c3357 100644 --- a/editor/src/components/inspector/flex-section.tsx +++ b/editor/src/components/inspector/flex-section.tsx @@ -633,7 +633,7 @@ function AxisDimensionControl({ items={items} opener={invisibleOpener} onOpenChange={onOpenChangeTitleMenu} - isOpen={isTitleMenuOpen} + forceOpen={isTitleMenuOpen} /> void style?: CSSProperties - isOpen?: boolean + forceOpen?: boolean } export const ItemContainerTestId = (id: string) => `item-container-${id}` @@ -105,7 +105,7 @@ export const DropdownMenu = React.memo((props) => { }, []) const onEscapeKeyDown = React.useCallback((e: KeyboardEvent) => e.stopPropagation(), []) - const [open, setOpen] = usePropControlledStateV2(props.isOpen || false) + const [open, setOpen] = usePropControlledStateV2(props.forceOpen || false) const shouldShowCheckboxes = props.items.some( (i) => !isSeparatorDropdownMenuItem(i) && i.checked != null,