Comments (4)
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.
from ionic-framework.
Here is the github link for reproduced code: https://github.com/Shruti2906/ionicPlaceHolderIssue
from ionic-framework.
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:
- Use the
label
prop ofIonInput
instead ofplaceholder
. - Use an
IonDatetimeButton
instead of anIonInput
: https://ionicframework.com/docs/api/datetime-button
I'm going to close this as not a bug in Ionic, but let me know if you have any questions.
from ionic-framework.
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.
from ionic-framework.
Related Issues (20)
- bug: IonRouterOutlet missing the properties onPointerEnterCapture, onPointerLeaveCapture HOT 4
- bug: Angular 17 and Ionic 7 - SSR issue HOT 3
- bug: IonRouterOutlet | Type '{ children: Element[]; }' is missing the following properties from type 'Pick<IonRouterOutlet & { basePath?: string | undefined; ref?: Ref<any> | undefined; ionPage?: boolean | undefined; } & IonicReactProps & Omit<...>, keyof IonicReactProps | ... 253 more ... | "ionPage">': onPointerEnterCapture, HOT 2
- bug: Filled Input changing the centered vertically of label when switch font-family css HOT 5
- bug:test HOT 1
- bug: autocapitalize is required in IonSearchbar types HOT 3
- Where is the dist folder containing code on your CDN? HOT 1
- bug: ion-datetime Month Navigation Fails in RTL Mode" HOT 1
- feat: select, add errorText and helperText props HOT 1
- bug: Ionic 7+ Angular LoadingController with Http Interceptor Loader Present and Dismiss issue HOT 2
- bug: the labelPlacement attribute set to 'floating' does not function properly when buttons or icons are used within a ion text area. HOT 1
- bug: popover without ion-content not scrollable HOT 2
- feat: Support `input#list` HOT 3
- bug: Black text color on dark theme HOT 4
- bug: IonListHeader and IonButton inconsistent alignment HOT 5
- bug: [v7.8.1] angular standalone do not load correctly ionic componentes in production build HOT 2
- bug: window.Ionic.platforms returns ['mobile', 'mobileweb'] instead of ['desktop'] on chromium based browser HOT 1
- bug: Angular Standalone Components - Disabled IonSelect inside IonItem is not being fully disabled HOT 1
- feat: Style ion-accordion detail arrow HOT 1
- bug: HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ionic-framework.