From 798ecf76458b3204cca3841c6127770587cf2808 Mon Sep 17 00:00:00 2001 From: "John Molakvoæ (skjnldsv)" Date: Thu, 21 Feb 2019 12:29:49 +0100 Subject: Focus new group input on show MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- settings/src/views/Users.vue | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'settings') diff --git a/settings/src/views/Users.vue b/settings/src/views/Users.vue index a1116749117..5963881b9b9 100644 --- a/settings/src/views/Users.vue +++ b/settings/src/views/Users.vue @@ -425,6 +425,10 @@ export default { } else { Vue.set(addGroup, 'action', function() { self.showAddGroupEntry = true + // focus input + Vue.nextTick(() => { + window.addgroup.querySelector('form > input[type="text"]').focus() + }) }) } groups.unshift(addGroup); -- cgit v1.2.3