Auto refocus filterbox

pull/3/head
Zef Hemel 2022-06-13 11:26:39 +02:00
parent 32937f88e3
commit 254a2e0736
1 changed files with 3 additions and 0 deletions

View File

@ -131,6 +131,9 @@ export function FilterList({
placeholder={placeholder}
ref={searchBoxRef}
onChange={filterUpdate}
onBlur={(e) => {
searchBoxRef.current!.focus();
}}
onKeyDown={(e: React.KeyboardEvent) => {
// console.log("Key up", e);
if (onKeyPress) {