From e5b8775f7773a807f7e9ad4b1f530642e55c1322 Mon Sep 17 00:00:00 2001 From: Oliver Buchtala Date: Thu, 23 Apr 2020 12:51:36 +0200 Subject: [PATCH] Autofocus select in 'AttachFile' and 'AttachResource' modals. --- src/components/AttachFileModal.js | 1 + src/components/AttachResourceModal.js | 1 + 2 files changed, 2 insertions(+) diff --git a/src/components/AttachFileModal.js b/src/components/AttachFileModal.js index c1aab6c..292c9eb 100644 --- a/src/components/AttachFileModal.js +++ b/src/components/AttachFileModal.js @@ -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') diff --git a/src/components/AttachResourceModal.js b/src/components/AttachResourceModal.js index 09b80e5..b694f7c 100644 --- a/src/components/AttachResourceModal.js +++ b/src/components/AttachResourceModal.js @@ -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')