fix(input): min/max compatibility with react-hook-form (#24657)

Resolves #24489
This commit is contained in:
Sean Perkins
2022-01-27 12:29:52 -05:00
committed by GitHub
parent a34ab420e3
commit 1f918835f4
4 changed files with 10 additions and 10 deletions

View File

@ -1051,7 +1051,7 @@ export namespace Components {
/**
* The maximum value, which must not be less than its minimum (min attribute) value.
*/
"max"?: string;
"max"?: string | number;
/**
* If the value of the type attribute is `text`, `email`, `search`, `password`, `tel`, or `url`, this attribute specifies the maximum number of characters that the user can enter.
*/
@ -1059,7 +1059,7 @@ export namespace Components {
/**
* The minimum value, which must not be greater than its maximum (max attribute) value.
*/
"min"?: string;
"min"?: string | number;
/**
* If the value of the type attribute is `text`, `email`, `search`, `password`, `tel`, or `url`, this attribute specifies the minimum number of characters that the user can enter.
*/
@ -4753,7 +4753,7 @@ declare namespace LocalJSX {
/**
* The maximum value, which must not be less than its minimum (min attribute) value.
*/
"max"?: string;
"max"?: string | number;
/**
* If the value of the type attribute is `text`, `email`, `search`, `password`, `tel`, or `url`, this attribute specifies the maximum number of characters that the user can enter.
*/
@ -4761,7 +4761,7 @@ declare namespace LocalJSX {
/**
* The minimum value, which must not be greater than its maximum (max attribute) value.
*/
"min"?: string;
"min"?: string | number;
/**
* If the value of the type attribute is `text`, `email`, `search`, `password`, `tel`, or `url`, this attribute specifies the minimum number of characters that the user can enter.
*/