Skip to content

Commit

Permalink
Autofocus select in 'AttachFile' and 'AttachResource' modals.
Browse files Browse the repository at this point in the history
  • Loading branch information
obuchtala committed Apr 23, 2020
1 parent d46318b commit e5b8775
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/AttachFileModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export default class AttachFileModal extends Component {
query: this._queryFiles.bind(this),
itemRenderer: this._renderAttachedFile.bind(this),
local: true,
autofocus: true,
onchange: this._onFilesChange,
onaction: this._onFilesAction
}).ref('files')
Expand Down
1 change: 1 addition & 0 deletions src/components/AttachResourceModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export default class AttachResourceModal extends Component {
query: this._queryResources.bind(this),
itemRenderer: this._renderAttachedResource.bind(this),
local: true,
autofocus: true,
onchange: this._onResourcesChange,
onaction: this._onResourcesAction
}).ref('resources')
Expand Down

0 comments on commit e5b8775

Please sign in to comment.