From 5a1ea4c811bed83106b611d6cbe1d8f50e40a0f5 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Wed, 20 Jul 2022 19:22:04 +0530 Subject: [PATCH] fix(gui-v2): focus to validation failed field Signed-off-by: Pranav C --- packages/nc-gui-v2/pages/project/index/create-external.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nc-gui-v2/pages/project/index/create-external.vue b/packages/nc-gui-v2/pages/project/index/create-external.vue index 7149e2cb1b..1fc60ae6bd 100644 --- a/packages/nc-gui-v2/pages/project/index/create-external.vue +++ b/packages/nc-gui-v2/pages/project/index/create-external.vue @@ -111,7 +111,7 @@ function getConnectionConfig() { const form = ref() const focusInvalidInput = () => { - form?.value?.$el.querySelector('.ant-form-item-explain-error')?.parentNode?.querySelector('input')?.focus() + form?.value?.$el.querySelector('.ant-form-item-explain-error')?.parentNode?.parentNode?.querySelector('input')?.focus() } const createProject = async () => { @@ -371,7 +371,7 @@ onMounted(() => {