We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 747d0da commit 9b19a33Copy full SHA for 9b19a33
1 file changed
adminforth/spa/src/components/ColumnValueInput.vue
@@ -99,8 +99,8 @@
99
:fullWidth="true"
100
:prefix="column.inputPrefix"
101
:suffix="column.inputSuffix"
102
- :modelValue="value?.toString().replace(/(\.[0-9]*[1-9])0+$|\.0+$/, '$1')"
103
- @update:modelValue="(val: string | number) => $emit('update:modelValue', val !== null ? String(val) : '')"
+ :modelValue="value == null ? null : value.toString().replace(/(\.[0-9]*[1-9])0+$|\.0+$/, '$1')"
+ @update:modelValue="(val: string | number | null | undefined) => $emit('update:modelValue', val == null || (typeof val === 'number' && Number.isNaN(val)) ? '' : String(val))"
104
/>
105
<Input
106
v-else-if="(type || column.type) === 'float'"
0 commit comments