I’m trying to use ion-slides
component, but, when I focus some input and the keyboard appears, the content is repositioned to the top and is almost impossible to see. With browser works fine, but, when I ionic cordova run android --device
this strange behavior happens.
Prints:
When I enter on the app:
When some input is focused and the keyboard is shown:
And when keyboard is hidden again:
My code:
<ion-content padding class="bg-gradient swiper-no-swiping">
<ion-slides>
<ion-slide>
<h1>What's your name?</h1>
<span margin-bottom>Tell me, please.</span>
<form [formGroup]="formName" (ngSubmit)="submitName(formName.value)">
<ion-grid no-padding>
<ion-row>
<ion-col>
<ion-item margin-bottom>
<ion-input type="text" placeholder="First Name" formControlName="firstName"></ion-input>
</ion-item>
</ion-col>
<ion-col>
<ion-item margin-bottom>
<ion-input type="text" placeholder="Last Name" formControlName="lastName"></ion-input>
</ion-item>
</ion-col>
</ion-row>
</ion-grid>
<button ion-button block type="submit" [disabled]="!formName.valid">Next</button>
</form>
</ion-slide>
<ion-slide>
<h1>Heeey!</h1>
</ion-slide>
</ion-slides>
</ion-content>
How can I fix it?