auto focus input, url shortened

This commit is contained in:
2018-09-21 17:13:00 +02:00
parent 5dfd05bd1d
commit 3258f2666f
4 changed files with 16 additions and 5 deletions

View File

@ -76,6 +76,9 @@ const PasswordManager = inject("rootStore") ( observer(
componentDidMount() {
this.fetchData();
//Focus on search input
document.getElementById('search').focus();
}
@ -230,7 +233,7 @@ const PasswordManager = inject("rootStore") ( observer(
<Headline black="Password " red="manager" />
<Input icon placeholder='Search...'>
<input type='text' placeholder='Search...' name="search" onChange={this.onChangeInput} autoComplete="off" />
<input type='text' id="search" placeholder='Search...' name="search" onChange={this.onChangeInput} autoComplete="off" />
<Icon name='search' />
</Input>