Adding a minlength to search input.
This commit is contained in:
parent
19826ca45b
commit
704ce19844
|
@ -48,6 +48,7 @@ export class Navbar extends Component<any, State> {
|
|||
<form class="col-12 col-sm-6 m-0 px-1" onSubmit={linkEvent(this, this.search)}>
|
||||
<div class="input-group w-100">
|
||||
<input class="form-control border-left-0 border-top-0 border-bottom-0 no-outline" type="search" placeholder="Search..." aria-label="Search..." required
|
||||
minLength={4}
|
||||
value={this.state.searchParams.q}
|
||||
onInput={linkEvent(this, this.searchChange)}></input>
|
||||
<div class="input-group-append">
|
||||
|
|
Loading…
Reference in New Issue