From 595f578c57e5b338485bbba31830ea06672a8705 Mon Sep 17 00:00:00 2001 From: Thomas Hackl Date: Fri, 27 Feb 2026 10:00:02 +0100 Subject: focus input field on dialog open so that it can directly be closed again by pressing enter --- resources/vue/apps/short-urls/ShortUrl.vue | 9 +++++++-- resources/vue/apps/short-urls/ShortUrlLink.vue | 6 +++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/resources/vue/apps/short-urls/ShortUrl.vue b/resources/vue/apps/short-urls/ShortUrl.vue index 953ae37..f2310f0 100644 --- a/resources/vue/apps/short-urls/ShortUrl.vue +++ b/resources/vue/apps/short-urls/ShortUrl.vue @@ -33,7 +33,7 @@ @input="validateAlias" maxlength="255" @keydown.enter="triggerSave" - v-autofocus + ref="linkAlias" /> @@ -54,7 +54,7 @@ diff --git a/resources/vue/apps/short-urls/ShortUrlLink.vue b/resources/vue/apps/short-urls/ShortUrlLink.vue index dacf1fe..a3b972e 100644 --- a/resources/vue/apps/short-urls/ShortUrlLink.vue +++ b/resources/vue/apps/short-urls/ShortUrlLink.vue @@ -20,7 +20,11 @@ @confirm="save" > -- cgit v1.0