Reputation: 1824
We have form input fields (<ion-input>
) in an Ionic v4 (Angular, Cordova) app like these:
<ion-input formControlName="firstName" type="text" inputmode="text" autocapitalize="sentences"></ion-input>
In the Android app (running on Android 8.1), these autofill "tooltips" show up:
Is there a way to disable / get rid of them? What is strange is that it shows email addresses although the input field is NOT declared as an email field (which could be done by setting inputmode
to "email" instead of "text").
Versions:
@ionic/angular: 4.11.10
cordova-android: 8.1.0
Upvotes: 5
Views: 5319
Reputation: 503
<ion-input formControlName="firstName" type="text" inputmode="text" autocapitalize="sentences" autocomplete="off"></ion-input>
Add autocomplete="off" attribute to your input field. For more reference check ionic documentations regarding inputs. https://ionicframework.com/docs/api/input
Upvotes: 1