From 87b82aaf431605ebff60489ac9c4817125fb6f18 Mon Sep 17 00:00:00 2001 From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> Date: Thu, 21 Nov 2024 13:14:11 +0000 Subject: [PATCH] fix(nc-gui): focus input on open custom url --- .../components/dlg/share-and-collaborate/SharePage.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/nc-gui/components/dlg/share-and-collaborate/SharePage.vue b/packages/nc-gui/components/dlg/share-and-collaborate/SharePage.vue index 324731fb2e..6cf6777439 100644 --- a/packages/nc-gui/components/dlg/share-and-collaborate/SharePage.vue +++ b/packages/nc-gui/components/dlg/share-and-collaborate/SharePage.vue @@ -109,6 +109,8 @@ const isOpenCustomUrl = computed(() => { return !!activeView.value?.custom_url_path || isOpenCustomUrlLocal.value }) +const customUrlInputRef = ref() + const customUrl = ref() // const customUrl = computed({ @@ -151,10 +153,13 @@ const toggleCustomUrl = async () => { } else { customUrl.value = null } - await updateSharedView() } finally { isUpdating.value.customUrl = false + + if (isOpenCustomUrl.value) { + customUrlInputRef.value?.focus() + } } } @@ -402,6 +407,7 @@ async function savePreFilledMode() { >