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() { >
{{ dashboardUrl1 }}#/shared/