Browse Source

Nc fix(nc-gui): On Add Field/Edit Field in form view - pre-select the placeholder field name (#8255)

* fix(nc-gui): focus & select title text on addOrEdit modal open in form builder

* refactor(nc-gui): focus add or edit field placeholder input code
pull/8260/head
Ramesh Mane 8 months ago committed by GitHub
parent
commit
5f7a298778
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 7
      packages/nc-gui/components/smartsheet/column/EditOrAdd.vue

7
packages/nc-gui/components/smartsheet/column/EditOrAdd.vue

@ -208,6 +208,13 @@ onMounted(() => {
emit('add', formState.value)
}
}
if (isForm.value && !props.fromTableExplorer) {
setTimeout(() => {
antInput.value?.focus()
antInput.value?.select()
}, 100)
}
})
})

Loading…
Cancel
Save