Skip to content
This repository was archived by the owner on Aug 5, 2025. It is now read-only.

Commit 35ca0fb

Browse files
committed
front: fix clear input on blur when no match
Signed-off-by: Achraf Mohyeddine <[email protected]>
1 parent 8f1ed58 commit 35ca0fb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ui-core/src/components/inputs/ComboBox/ComboBox.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,7 @@ const ComboBox = <T,>({
198198
} else if (!isInputInSuggestions && selectedOption) {
199199
setInputValue(getSuggestionLabel(selectedOption));
200200
} else if (!isInputInSuggestions) {
201-
setInputValue('');
202-
setSelectedOption(null);
201+
clearInput();
203202
}
204203

205204
setFilteredSuggestions([]);

0 commit comments

Comments
 (0)