chore(react/ribbon): focus on search textbox

This commit is contained in:
Elian Doran
2025-08-24 16:45:17 +03:00
parent b9193a5562
commit 3f105f7b8b
4 changed files with 3 additions and 21 deletions

View File

@@ -254,6 +254,9 @@ function SearchStringOption({ note, refreshResults, error, ...restProps }: Searc
placement: "bottom"
});
// Auto-focus.
useEffect(() => inputRef.current?.focus(), []);
useEffect(() => {
if (error) {
showTooltip();