Skip to content

Commit

Permalink
Fixed: (UI) Ensure autofocus on filter input in Manual Import
Browse files Browse the repository at this point in the history
Fixes #3905
  • Loading branch information
mynameisbogdan committed Jul 22, 2023
1 parent 36f0108 commit 17db815
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
Expand Up @@ -88,14 +88,17 @@ class SelectAlbumModalContent extends Component {
}
<TextInput
className={styles.filterInput}
placeholder={translate('FilterPlaceHolder')}
placeholder={translate('FilterAlbumPlaceholder')}
name="filter"
value={filter}
autoFocus={true}
onChange={this.onFilterChange}
/>

<Scroller className={styles.scroller}>
<Scroller
className={styles.scroller}
autoFocus={false}
>
{
<Table
columns={columns}
Expand Down
Expand Up @@ -56,14 +56,17 @@ class SelectArtistModalContent extends Component {
>
<TextInput
className={styles.filterInput}
placeholder={translate('FilterPlaceHolder')}
placeholder={translate('FilterArtistPlaceholder')}
name="filter"
value={filter}
autoFocus={true}
onChange={this.onFilterChange}
/>

<Scroller className={styles.scroller}>
<Scroller
className={styles.scroller}
autoFocus={false}
>
{
items.map((item) => {
return item.artistName.toLowerCase().includes(filter) ?
Expand Down
3 changes: 2 additions & 1 deletion src/NzbDrone.Core/Localization/Core/en.json
Expand Up @@ -352,7 +352,8 @@
"FileNames": "File Names",
"Filename": "Filename",
"Files": "Files",
"FilterPlaceHolder": "Filter artist",
"FilterAlbumPlaceholder": "Filter album",
"FilterArtistPlaceholder": "Filter artist",
"Filters": "Filters",
"FirstAlbum": "First Album",
"FirstAlbumData": "Monitor the first albums. All other albums will be ignored",
Expand Down

0 comments on commit 17db815

Please sign in to comment.