diff --git a/src/BaseSelect.tsx b/src/BaseSelect.tsx index adc8613a..32bd6a20 100644 --- a/src/BaseSelect.tsx +++ b/src/BaseSelect.tsx @@ -363,7 +363,7 @@ const BaseSelect = React.forwardRef((props: BaseSelectProps, ref: React.Ref = (...args) => { setMockFocused(false, () => { focusRef.current = false; - onToggleOpen(false); }); if (disabled) { @@ -641,12 +640,11 @@ const BaseSelect = React.forwardRef((props: BaseSelectProps, ref: React.Ref void); - if (customizeRawInputElement) { - onTriggerVisibleChange = (newOpen: boolean) => { + + const onTriggerVisibleChange = (newOpen: boolean) => { onToggleOpen(newOpen); }; - } + // Close when click on non-select element useSelectTriggerControl(