We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26d0619 commit 8a5f2e9Copy full SHA for 8a5f2e9
1 file changed
adminforth/spa/src/components/ColumnValueInput.vue
@@ -91,15 +91,21 @@
91
/>
92
<Input
93
v-else-if="(type || column.type) === 'decimal'"
94
+ ref="input"
95
type="number"
96
+ inputmode="decimal"
97
step="any"
98
class="w-40"
99
placeholder="0.0"
100
:fullWidth="true"
101
:prefix="column.inputPrefix"
102
:suffix="column.inputSuffix"
- :modelValue="String(value)"
- @update:modelValue="(val: any) => $emit('update:modelValue', val)"
103
+ :readonly="(column.editReadonly && source === 'edit') || readonly"
104
+
105
+ :modelValue="value !== null && value !== undefined ? parseFloat(value) : ''"
106
107
+ @update:modelValue="$emit('update:modelValue', $event)"
108
109
@blur="$emit('update:modelValue', value ? parseFloat(value).toString() : '')"
110
111
0 commit comments