diff --git a/packages/nc-gui-v2/components/cell/Currency.vue b/packages/nc-gui-v2/components/cell/Currency.vue index b9984f8499..54bfdc53d2 100644 --- a/packages/nc-gui-v2/components/cell/Currency.vue +++ b/packages/nc-gui-v2/components/cell/Currency.vue @@ -37,10 +37,18 @@ const currency = computed(() => { return vModel.value } }) + +const focus = (el: HTMLInputElement) => el?.focus() diff --git a/packages/nc-gui-v2/components/cell/Decimal.vue b/packages/nc-gui-v2/components/cell/Decimal.vue index 77b0a2f7a3..7f1ef4c114 100644 --- a/packages/nc-gui-v2/components/cell/Decimal.vue +++ b/packages/nc-gui-v2/components/cell/Decimal.vue @@ -31,6 +31,7 @@ const focus = (el: HTMLInputElement) => el?.focus() class="outline-none pa-0 border-none w-full h-full prose-sm" type="number" step="0.1" + @blur="editEnabled = false" /> {{ vModel }} diff --git a/packages/nc-gui-v2/components/cell/Email.vue b/packages/nc-gui-v2/components/cell/Email.vue index 33407812bd..ab10f0aebb 100644 --- a/packages/nc-gui-v2/components/cell/Email.vue +++ b/packages/nc-gui-v2/components/cell/Email.vue @@ -25,7 +25,7 @@ const focus = (el: HTMLInputElement) => el?.focus() diff --git a/packages/nc-gui-v2/components/cell/Integer.vue b/packages/nc-gui-v2/components/cell/Integer.vue index 38691d0fa2..f62ef8e345 100644 --- a/packages/nc-gui-v2/components/cell/Integer.vue +++ b/packages/nc-gui-v2/components/cell/Integer.vue @@ -32,6 +32,7 @@ function onKeyDown(evt: KeyboardEvent) { v-model="vModel" class="outline-none pa-0 border-none w-full h-full prose-sm" type="number" + @blur="editEnabled = false" @keydown="onKeyDown" /> {{ vModel }} diff --git a/packages/nc-gui-v2/components/cell/Url.vue b/packages/nc-gui-v2/components/cell/Url.vue index 97d9c5fe19..1bfcdb39df 100644 --- a/packages/nc-gui-v2/components/cell/Url.vue +++ b/packages/nc-gui-v2/components/cell/Url.vue @@ -30,7 +30,7 @@ const focus = (el: HTMLInputElement) => el?.focus()