fix: Number input defaults to 0 not allowing to have arbitrary precision (#10021)

This commit is contained in:
Michael Kret 2024-07-12 12:42:09 +03:00 committed by GitHub
parent 7db16561dc
commit e4e66ab7da
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -14,7 +14,7 @@ type InputNumberProps = {
const props = withDefaults(defineProps<InputNumberProps>(), { const props = withDefaults(defineProps<InputNumberProps>(), {
size: undefined, size: undefined,
step: 1, step: 1,
precision: 0, precision: undefined,
min: -Infinity, min: -Infinity,
max: Infinity, max: Infinity,
}); });