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 {
|
||||
setError(false);
|
||||
setSearchTerm(value);
|
||||
setMangas([]);
|
||||
setMessage('');
|
||||
}
|
||||
}
|
||||
@ -86,12 +87,18 @@ export default function SearchSingle() {
|
||||
|
||||
return (
|
||||
<>
|
||||
<form className={classes.root} noValidate autoComplete="off">
|
||||
<TextField inputRef={textInput} error={error} id="standard-basic" label="Search text.." />
|
||||
<div className={classes.root}>
|
||||
<TextField
|
||||
inputRef={textInput}
|
||||
error={error}
|
||||
id="standard-basic"
|
||||
label="Search text.."
|
||||
onKeyDown={(e) => e.key === 'Enter' && processInput()}
|
||||
/>
|
||||
<Button variant="contained" color="primary" onClick={() => processInput()}>
|
||||
Search
|
||||
</Button>
|
||||
</form>
|
||||
</div>
|
||||
{mangaGrid}
|
||||
</>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user