diff --git a/editor/src/uuiui/radix-components.tsx b/editor/src/uuiui/radix-components.tsx index 77feb64fe1db..db93aa8df623 100644 --- a/editor/src/uuiui/radix-components.tsx +++ b/editor/src/uuiui/radix-components.tsx @@ -343,11 +343,21 @@ export const RadixSelect = React.memo( return fullOptions }, [props.options, props.value, props.allowedValues]) + const onMouseDownOutside = React.useCallback( + (e: React.MouseEvent) => { + e.stopPropagation() + e.preventDefault() + onOpenChange(false) + }, + [onOpenChange], + ) + return ( +