From aed210cf169033de58e7eae8197a6470c9aa0fe0 Mon Sep 17 00:00:00 2001 From: Jo du Plessis Date: Fri, 14 Jun 2024 22:21:39 +0200 Subject: [PATCH] click outside to refocus input --- packages/core/src/select/select.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/select/select.tsx b/packages/core/src/select/select.tsx index 9809d52f..71af841e 100644 --- a/packages/core/src/select/select.tsx +++ b/packages/core/src/select/select.tsx @@ -242,7 +242,7 @@ export const Select = (props: SelectProps) => { const handleClickOutside = (e) => { if (containerRef.current) { if (!containerRef.current?.contains(e.target)) { - if (visible) dismiss(false) + if (visible) dismiss() } } }