Try to enter 0.01 in the number field and the decimal point will be removed as soon as the leading zero is pressed
In NumberControlRenderer.vue the onInputChange callback displays the value using (line 87)
const numberAsString = inputStringIsInExponentForm ? result.toExponential() : result.toPrecision();
The toPrecision() call prevents the user entering values between 0 and 0.1.
The toPrecision() call needs to occurs after the user has finished editing
Tested here : https://jsonforms-vuetify-renderers.netlify.app/#/example/control
Try to enter 0.01 in the number field and the decimal point will be removed as soon as the leading zero is pressed
In
NumberControlRenderer.vue
theonInputChange
callback displays the value using (line 87)const numberAsString = inputStringIsInExponentForm ? result.toExponential() : result.toPrecision();
ThetoPrecision()
call prevents the user entering values between 0 and 0.1.The
toPrecision()
call needs to occurs after the user has finished editing