ionic-team / ionic-plugin-keyboard

Ionic Keyboard Plugin for Cordova
Apache License 2.0
610 stars 274 forks source link

Word suggestions not working in iOS #255

Open themastersoda opened 7 years ago

themastersoda commented 7 years ago

Hey, im experiencing an issue with keyboard in iOS does not display word suggestions even though input attribute autocomplete is set to true / on. Everything works as expected on Android devices though.

I have created a repository displaying the issue Github repo I've added several ion-inputs with different combination of attributes to show the issue. Running the app on Android device we can see that keyboard shows suggestions if autocomplete attribute is present, however iOS simply does not care and never displays anything. Tried enabling keyboardAccessoryBar just in case, but that does not help in any way as well.

<ion-list>
    <ion-item>
      <ion-label>No attributes set:</ion-label>
<!-- No text suggestions on any platform, working as expected -->
      <ion-input type="text" [(ngModel)]="text1" name="text1" id="text1"></ion-input>
    </ion-item>
    <ion-item>
      <ion-label>autocomplete="true":</ion-label>
<!-- Works on Android, not on iOS -->
      <ion-input autocomplete="true" type="text" [(ngModel)]="text2" name="text2" id="text2"></ion-input>
    </ion-item>
    <ion-item>
      <ion-label>autocomplete="on":</ion-label>
<!-- Works on Android, not on iOS -->
      <ion-input autocomplete="on" type="text" [(ngModel)]="text3" name="text3" id="text3"></ion-input>
    </ion-item>
    <ion-item>
      <ion-label>autocomplete="on" spellcheck="true":</ion-label>
<!-- Works on Android, not on iOS -->
      <ion-input autocomplete="on" spellcheck="true" type="text" [(ngModel)]="text4" name="text4" id="text4"></ion-input>
    </ion-item>
    <ion-item>
      <ion-label>autocomplete="on":</ion-label>
<!-- Works on Android, not on iOS -->
      <ion-textarea autocomplete="on" spellcheck="true" rows="1" [(ngModel)]="text5" name="text5" id="text5"></ion-textarea>
    </ion-item>
  </ion-list>

Any help or info would be appreciated.

eggplantPrince commented 7 years ago

Hi I experience the same issue with the latest version of ionic 2

danielehrhardt commented 7 years ago

i have the same problem