Browse Source

feat: select column name by default on column edit/create

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/958/head
Pranav C 3 years ago
parent
commit
67b2ff58d9
  1. 4
      packages/nc-gui/components/project/spreadsheet/components/editColumn.vue

4
packages/nc-gui/components/project/spreadsheet/components/editColumn.vue

@ -654,7 +654,9 @@ export default {
focusInput() {
setTimeout(() => {
if (this.$refs.column && this.$refs.column.$el) {
this.$refs.column.$el.querySelector('input').focus()
const el = this.$refs.column.$el.querySelector('input')
el.focus()
el.select()
}
}, 100)
},

Loading…
Cancel
Save