When using the TextFieldElement component from react-hook-form-mui, I'm trying to set min and max constraints for numeric input using InputProps, inputProps, and passing them directly as props. However, none of these methods are working, and the field does not enforce the min and max values.
Expected behavior 🤔
The TextFieldElement should accept min and max constraints and enforce them for numeric input, preventing users from entering values outside the specified range.
Steps to reproduce 🕹
Install the react-hook-form-mui package.
Use the TextFieldElement component in a form.
Try to set min and max constraints using different methods (InputProps, inputProps, direct props).
Observe that the field does not enforce these constraints.
Duplicates
Latest version
Current behavior 😯
When using the TextFieldElement component from react-hook-form-mui, I'm trying to set min and max constraints for numeric input using InputProps, inputProps, and passing them directly as props. However, none of these methods are working, and the field does not enforce the min and max values.
Expected behavior 🤔
The TextFieldElement should accept min and max constraints and enforce them for numeric input, preventing users from entering values outside the specified range.
Steps to reproduce 🕹