From dc18656ede5544704ff6c0fc3708c23cc59dc09d Mon Sep 17 00:00:00 2001 From: Brandon Date: Tue, 24 Sep 2024 14:12:18 -0400 Subject: [PATCH] fix: Only reset input state if list box is closed (#1074) --- src/inputs/internal/ComboBoxBase.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inputs/internal/ComboBoxBase.tsx b/src/inputs/internal/ComboBoxBase.tsx index 396cd79f3..b5b259426 100644 --- a/src/inputs/internal/ComboBoxBase.tsx +++ b/src/inputs/internal/ComboBoxBase.tsx @@ -321,7 +321,7 @@ export function ComboBoxBase(props: ComboBoxBaseProps) inputValue: "", searchValue: "", })); - } else { + } else if (!state.isOpen) { setFieldState((prevState) => ({ ...prevState, searchValue: "",