Skip to content

UInputNumber: Disable automatically snapping values to step #6385

@abhishek-junghare

Description

@abhishek-junghare

Package

v4.x

Description

No, this is not about stepSnapping prop.

Let's say there is a field with min 10 and max 100. I have set the step as 10. So if the user increases the value using keyboard arrows or buttons, it will increase by 10. But I would like the user to be able to set custom values as well. E.g. If user wants to set value 25, then he should be able to. But, currently, after leaving the input the entered 25 becomes 20 (or 30) snapping to the step. I don't want to set stepSnapping to false because then the user loses the 10, 20, 30... steps, instead it becomes 25, 35, 45. I still want to keep the steps as it is, but allow for custom values as well.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesttriageAwaiting initial review and prioritizationv4#4488

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions