fix(docsearch): focus input on Selection Search
This commit is contained in:
parent
533f187ba9
commit
dfa63df4d0
1 changed files with 4 additions and 0 deletions
|
|
@ -321,6 +321,10 @@ export function DocSearchModal({
|
|||
React.useEffect(() => {
|
||||
if (initialQuery.length > 0) {
|
||||
refresh();
|
||||
|
||||
if (inputRef.current) {
|
||||
inputRef.current.focus();
|
||||
}
|
||||
}
|
||||
}, [initialQuery, refresh]);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue