mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
fix(input): min/max compatibility with react-hook-form (#24657)
Resolves #24489
This commit is contained in:
8
core/src/components.d.ts
vendored
8
core/src/components.d.ts
vendored
@ -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.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user