summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJessica <jessica@Absolventas-MacBook-Pro.local>2018-09-03 15:49:16 +0200
committerJessica <jessica@Absolventas-MacBook-Pro.local>2018-09-03 17:25:55 +0200
commit0165e51222d4ba90ddef8c1b4ea10f6a9902b09d (patch)
tree7c73c1b901313af73d93c156b384836d54e0e13b /src
parent724171dfecf90b02df435d6cf631660dfc4765e7 (diff)
share input field directly focused when opened
Diffstat (limited to 'src')
-rw-r--r--src/components/Settings/SettingsAddressbookShare.vue6
1 files changed, 5 insertions, 1 deletions
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