Browse Source

fix(gui): on typing make editable and focus url input

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/4968/head
Pranav C 2 years ago
parent
commit
d0a11b99c7
  1. 2
      packages/nc-gui/components/cell/Url.vue
  2. 1
      packages/nc-gui/utils/columnUtils.ts

2
packages/nc-gui/components/cell/Url.vue

@ -79,7 +79,7 @@ watch(
v-if="editEnabled" v-if="editEnabled"
:ref="focus" :ref="focus"
v-model="vModel" v-model="vModel"
class="outline-none text-sm w-full px-2" class="outline-none text-sm w-full px-2 bg-transparent h-full"
@blur="editEnabled = false" @blur="editEnabled = false"
@keydown.down.stop @keydown.down.stop
@keydown.left.stop @keydown.left.stop

1
packages/nc-gui/utils/columnUtils.ts

@ -214,6 +214,7 @@ const isTypableInputColumn = (colOrUidt: ColumnType | UITypes) => {
UITypes.Percent, UITypes.Percent,
UITypes.Duration, UITypes.Duration,
UITypes.JSON, UITypes.JSON,
UITypes.URL,
].includes(uidt) ].includes(uidt)
} }

Loading…
Cancel
Save