-
-
Notifications
You must be signed in to change notification settings - Fork 32.6k
[TextField] snapOnStep prop #45856
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Could you post a reproduction, either a Github repo or Codesandbox/Stackblitz and detailed steps on issue you are facing? |
This is exactly what I want |
@shifoc For which component? |
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. |
@ZeeshanTamboli Sorry! I updated the description but I don't have permission to reopen the issue |
@shifoc We don’t recommend using |
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. |
Summary
Would it be possible to add this behavior:
The new snapOnStep prop is a boolean:
true: the value is snapped to the nearest step when stepping (incrementing/decrementing). So 1.07 with a step of 1 becomes 2 when incrementing
false (new default): the value isn't snapped at all. So 1.07 with a step of 1 becomes 2.07.
Examples
mui/base-ui#1560
Motivation
No response
Search keywords: TextField, step, snapOnStep
The text was updated successfully, but these errors were encountered: