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:
William Martin
2021-06-24 10:23:19 -04:00
committed by GitHub
parent ceabba154c
commit f3ae4319bb
9 changed files with 34 additions and 19 deletions

View File

@ -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.
*/