mirror of
https://github.com/tachiyomiorg/tachiyomi-extensions-inspector.git
synced 2024-11-01 15:05:06 +01:00
fix search bugs
This commit is contained in:
parent
85ec2ed367
commit
a0115d88b0
@ -50,6 +50,7 @@ export default function SearchSingle() {
|
|||||||
} else {
|
} else {
|
||||||
setError(false);
|
setError(false);
|
||||||
setSearchTerm(value);
|
setSearchTerm(value);
|
||||||
|
setMangas([]);
|
||||||
setMessage('');
|
setMessage('');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -86,12 +87,18 @@ export default function SearchSingle() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<form className={classes.root} noValidate autoComplete="off">
|
<div className={classes.root}>
|
||||||
<TextField inputRef={textInput} error={error} id="standard-basic" label="Search text.." />
|
<TextField
|
||||||
|
inputRef={textInput}
|
||||||
|
error={error}
|
||||||
|
id="standard-basic"
|
||||||
|
label="Search text.."
|
||||||
|
onKeyDown={(e) => e.key === 'Enter' && processInput()}
|
||||||
|
/>
|
||||||
<Button variant="contained" color="primary" onClick={() => processInput()}>
|
<Button variant="contained" color="primary" onClick={() => processInput()}>
|
||||||
Search
|
Search
|
||||||
</Button>
|
</Button>
|
||||||
</form>
|
</div>
|
||||||
{mangaGrid}
|
{mangaGrid}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user