-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Closed
Labels
package: core@ionic/core package@ionic/core packagetype: buga confirmed bug reporta confirmed bug report
Description
Bug Report
Ionic version:
[x] 4.x
Current behavior:
When focussing an ion-input element in iOS, the keyboard opens and scroll up so that the input is properly in view. If you focus another input just below it, keeping the keyboard active, the view scrolls down so that the input is halfway covered by the header.
Expected behavior:
When focussing the second ion-input I expect the view to scroll to a position where the ion-input is centered in the view.
Steps to reproduce:
Select an ion-input. When the keyboard is open, select an ion-input below it. The second input should be positioned somewhere halfway under the header.
Related code:
<ion-list class="data-form__content">
<ion-item class="data-form__content__item">
<ion-label color="secondary" position="stacked">Voornaam</ion-label>
<ion-input
[(ngModel)]="info.klant_naam"
type="text">
</ion-input>
</ion-item>
<ion-item class="data-form__content__item">
<ion-label color="secondary" position="stacked">Voorletters</ion-label>
<ion-input
[(ngModel)]="info.klant_voorletters"
type="text">
</ion-input>
</ion-item>
<ion-item class="data-form__content__item">
<ion-label color="secondary" position="stacked">Achternaam</ion-label>
<ion-input
[(ngModel)]="info.klant_achternaam"
type="text">
</ion-input>
</ion-item>
....
</ion-list>
Other information:
I'm opening this as a new issue based on this issue, as it was locked by the ionic bot.
Ionic info:
Ionic:
ionic (Ionic CLI) : 4.10.1 (C:\Users\sjoerd\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : @ionic/angular 4.0.0
@angular-devkit/build-angular : 0.9.0-rc.1
@angular-devkit/schematics : 7.0.0-rc.1
@angular/cli : 7.0.0-rc.1
@ionic/angular-toolkit : not installed
Capacitor:
capacitor (Capacitor CLI) : 1.0.0-beta.17
@capacitor/core : 1.0.0-beta.17
System:
NodeJS : v10.11.0 (C:\Program Files\nodejs\node.exe)
npm : 6.6.0
OS : Windows 10
bashoogzaad, kyleabens, SmirnovM91, dmurtari, denisroldan and 2 moreEugeneNews
Metadata
Metadata
Assignees
Labels
package: core@ionic/core package@ionic/core packagetype: buga confirmed bug reporta confirmed bug report