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

Commit b8f2f96

Browse files
barnomasozTigge
authored andcommitted
fix(searchSelect): set isTyping to false on blur
When user leaves the input, `isTyping` should be set to `false`
1 parent e30b3f6 commit b8f2f96

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/core/src/Select/SearchSelect.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ export function SearchSelect<V extends string = string>({
9494

9595
const selectInputText = useCallback(() => inputRef.current?.select(), [])
9696

97-
const resetInputText = useCallback(
98-
() => setFilter(getLabel(currentValue, options)),
99-
[currentValue, options]
100-
)
97+
const resetInputText = useCallback(() => {
98+
setFilter(getLabel(currentValue, options))
99+
stopTyping()
100+
}, [currentValue, options])
101101

102102
useEffect(
103103
() => setFilter(getLabel(currentValue, options)),

0 commit comments

Comments
 (0)