[useNumberInput] Warn when switching between controlled and uncontrolled state #38514
Labels
component: number field
This is the name of the generic UI component, not the React module!
enhancement
This is not a bug, nor a new feature
package: base-ui
Specific to @mui/base
Problem
Suggested in #36119 (comment). There is no warning when changing control mode. Using
useControlled
would solve this.Solution
Using
useControllableReducer
to handle the internal state will make a better foundation for other features e.g. floating point support.The text was updated successfully, but these errors were encountered: