mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-01 11:47:01 +00:00
fix(nc-gui): Number based filters - restrict input for filter value to numbers
This commit is contained in:
@@ -7,6 +7,7 @@ interface Props {
|
||||
// for sqlite, when we clear a cell or empty the cell, it returns ""
|
||||
// otherwise, it is null type
|
||||
modelValue?: number | null | string
|
||||
location?: 'cell' | 'filter'
|
||||
}
|
||||
|
||||
interface Emits {
|
||||
@@ -42,7 +43,7 @@ const vModel = computed({
|
||||
},
|
||||
})
|
||||
|
||||
const inputType = computed(() => (isForm.value && !isEditColumn.value ? 'text' : 'number'))
|
||||
const inputType = computed(() => (isForm.value && !isEditColumn.value && props.location !== 'filter' ? 'text' : 'number'))
|
||||
|
||||
const focus: VNodeRef = (el) => {
|
||||
if (!isExpandedFormOpen.value && !isEditColumn.value && !isForm.value) {
|
||||
|
||||
Reference in New Issue
Block a user