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