Browse Source

fix: proper edit for bigint

Signed-off-by: mertmit <mertmit99@gmail.com>
fix/mysql-big-int
mertmit 6 months ago
parent
commit
8792d101b8
  1. 7
      packages/nc-gui/components/cell/Integer.vue

7
packages/nc-gui/components/cell/Integer.vue

@ -67,7 +67,12 @@ const vModel = computed({
},
})
const inputType = computed(() => (isForm.value && !isEditColumn.value ? 'text' : 'number'))
const inputType = computed(() =>
(vModel.value && (typeof vModel.value === 'string' ? +vModel.value : vModel.value) > Number.MAX_SAFE_INTEGER) ||
(isForm.value && !isEditColumn.value)
? 'text'
: 'number',
)
const focus: VNodeRef = (el) =>
!isExpandedFormOpen.value && !isEditColumn.value && !isForm.value && (el as HTMLInputElement)?.focus()

Loading…
Cancel
Save