From 0165e51222d4ba90ddef8c1b4ea10f6a9902b09d Mon Sep 17 00:00:00 2001 From: Jessica Date: Mon, 3 Sep 2018 15:49:16 +0200 Subject: share input field directly focused when opened --- src/components/Settings/SettingsAddressbookShare.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/components/Settings/SettingsAddressbookShare.vue b/src/components/Settings/SettingsAddressbookShare.vue index 8559b872..5faec2bb 100644 --- a/src/components/Settings/SettingsAddressbookShare.vue +++ b/src/components/Settings/SettingsAddressbookShare.vue @@ -97,6 +97,10 @@ export default { return t('contacts', 'No users or groups') } }, + mounted() { + // This ensures that the multiselect input is in focus as soon as the user clicks share + document.getElementById('users-groups-search').focus() + }, methods: { /** * Share addressbook @@ -166,8 +170,8 @@ export default { } }).then(() => { this.isLoading = false + this.inputGiven = true }) - this.inputGiven = true } else { this.inputGiven = false this.isLoading = false -- cgit v1.2.3