Closed Shruti2906 closed 7 months ago
Thanks for the issue! This issue has been labeled as needs reproduction
. This label is added to issues that need a code reproduction.
Please reproduce this issue in an Ionic starter application and provide a way for us to access it (GitHub repo, StackBlitz, etc). Without a reliable code reproduction, it is unlikely we will be able to resolve the issue, leading to it being closed.
If you have already provided a code snippet and are seeing this message, it is likely that the code snippet was not enough for our team to reproduce the issue.
For a guide on how to create a good reproduction, see our Contributing Guide.
Here is the github link for reproduced code: https://github.com/Shruti2906/ionicPlaceHolderIssue
Thank you, and apologies for the delay. This behavior matches that of a native <input>
: https://codepen.io/Amanda-Johnston/pen/eYoOWod
In general, I would not recommend using the placeholder
attribute as a substitute for a label, as this has accessibility problems. You can read more here: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/placeholder#accessibility_concerns
Instead, I would try one of these two alternatives:
label
prop of IonInput
instead of placeholder
.IonDatetimeButton
instead of an IonInput
: https://ionicframework.com/docs/api/datetime-buttonI'm going to close this as not a bug in Ionic, but let me know if you have any questions.
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Prerequisites
Ionic Framework Version
v7.x
Current Behavior