Auto refocus filterbox
parent
32937f88e3
commit
254a2e0736
|
@ -131,6 +131,9 @@ export function FilterList({
|
||||||
placeholder={placeholder}
|
placeholder={placeholder}
|
||||||
ref={searchBoxRef}
|
ref={searchBoxRef}
|
||||||
onChange={filterUpdate}
|
onChange={filterUpdate}
|
||||||
|
onBlur={(e) => {
|
||||||
|
searchBoxRef.current!.focus();
|
||||||
|
}}
|
||||||
onKeyDown={(e: React.KeyboardEvent) => {
|
onKeyDown={(e: React.KeyboardEvent) => {
|
||||||
// console.log("Key up", e);
|
// console.log("Key up", e);
|
||||||
if (onKeyPress) {
|
if (onKeyPress) {
|
||||||
|
|
Loading…
Reference in New Issue