mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 03:00:58 +08:00
fix(input, select, textarea): change type of placeholder prop to string only (#23500)
resolves #22976 BREAKING CHANGE: Updated the `placeholder` property on `ion-input`, `ion-textarea`, and `ion-select` to have a type of `string | undefined`.
This commit is contained in:
12
core/src/components.d.ts
vendored
12
core/src/components.d.ts
vendored
@ -1037,7 +1037,7 @@ export namespace Components {
|
||||
/**
|
||||
* Instructional text that shows before the input has a value.
|
||||
*/
|
||||
"placeholder"?: string | null;
|
||||
"placeholder"?: string;
|
||||
/**
|
||||
* If `true`, the user cannot modify the value.
|
||||
*/
|
||||
@ -2323,7 +2323,7 @@ export namespace Components {
|
||||
/**
|
||||
* The text to display when the select is empty.
|
||||
*/
|
||||
"placeholder"?: string | null;
|
||||
"placeholder"?: string;
|
||||
/**
|
||||
* The text to display instead of the selected option's value.
|
||||
*/
|
||||
@ -2663,7 +2663,7 @@ export namespace Components {
|
||||
/**
|
||||
* Instructional text that shows before the input has a value.
|
||||
*/
|
||||
"placeholder"?: string | null;
|
||||
"placeholder"?: string;
|
||||
/**
|
||||
* If `true`, the user cannot modify the value.
|
||||
*/
|
||||
@ -4621,7 +4621,7 @@ declare namespace LocalJSX {
|
||||
/**
|
||||
* Instructional text that shows before the input has a value.
|
||||
*/
|
||||
"placeholder"?: string | null;
|
||||
"placeholder"?: string;
|
||||
/**
|
||||
* If `true`, the user cannot modify the value.
|
||||
*/
|
||||
@ -5899,7 +5899,7 @@ declare namespace LocalJSX {
|
||||
/**
|
||||
* The text to display when the select is empty.
|
||||
*/
|
||||
"placeholder"?: string | null;
|
||||
"placeholder"?: string;
|
||||
/**
|
||||
* The text to display instead of the selected option's value.
|
||||
*/
|
||||
@ -6245,7 +6245,7 @@ declare namespace LocalJSX {
|
||||
/**
|
||||
* Instructional text that shows before the input has a value.
|
||||
*/
|
||||
"placeholder"?: string | null;
|
||||
"placeholder"?: string;
|
||||
/**
|
||||
* If `true`, the user cannot modify the value.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user