Browse Source

fix(gui-v2): focus to validation failed field

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/2730/head
Pranav C 2 years ago
parent
commit
5a1ea4c811
  1. 4
      packages/nc-gui-v2/pages/project/index/create-external.vue

4
packages/nc-gui-v2/pages/project/index/create-external.vue

@ -111,7 +111,7 @@ function getConnectionConfig() {
const form = ref<any>()
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(() => {
<style scoped>
:deep(.ant-collapse-header) {
@apply !pr-10 !-mt-4 text-right;
@apply !pr-10 !-mt-4 text-right justify-end;
}
:deep(.ant-collapse-content-box) {

Loading…
Cancel
Save