Skip to content
This repository was archived by the owner on Nov 20, 2025. It is now read-only.

Unable to enter numbers between 0 and 0.1Β #113

@MatTolladay

Description

@MatTolladay

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 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions