Adding a minlength to search input.

This commit is contained in:
Dessalines 2020-02-19 10:30:30 -05:00
parent 19826ca45b
commit 704ce19844
1 changed files with 1 additions and 0 deletions

View File

@ -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">