-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Labels
Good First IssueAn issue that's suitable for someone looking to contribute for the first timeAn issue that's suitable for someone looking to contribute for the first time[Package] Components/packages/components/packages/components[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
What problem does this address?
It's currently possible to input invalid values into the NumberControl: #33285
To prevent this, you currently have to manage that in the onChange you pass. But we should be able to introspect into the min and max values at minimum to create a generic validation function which prevents invalid values from being entered.
What is your proposed solution?
Using the min and max props, verify that the input value is between those numbers, inclusive of both (to match the HTML API).
Metadata
Metadata
Labels
Good First IssueAn issue that's suitable for someone looking to contribute for the first timeAn issue that's suitable for someone looking to contribute for the first time[Package] Components/packages/components/packages/components[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended