Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70439

Keyboard issues with Ionic4

$
0
0

@anandraj1411 wrote:

I have developed an android application using Ionic4. The issue I am facing is when the keyboard appears it covers the Input field, screen is not moving up. I have solved this issue in Ionic 3 by the following lines of code. But this does not works in Ionic4. Somebody please help.

imports: [
    IonicModule.forRoot(MyApp, {
    scrollAssist: true,
    autoFocusAssist: true
    })
  ],

HTML

<ion-content>
<div class="field-container">
    <form [formGroup]="credentialsForm" class="width-100">
        <ion-list>
            <ion-item no-padding class="transparent-border">
                <div class="logo-div">
                    <img src="assets/icon/favicon.png" class="app-logo">
                </div>
            </ion-item>
            <ion-item no-padding>
                <ion-label position="floating" color="primary">Username</ion-label>
                <ion-input type="text" color="primary" mode="ios" maxLength="5" formControlName="userName" required></ion-input>
            </ion-item>
            <span class="validation-errors" *ngIf="!credentialsForm.controls.userName.valid && (credentialsForm.controls.userName.dirty || onSaveAttempt)">Username
                is mandatory</span>
            <ion-item no-padding>
                <ion-label position="floating" color="primary">Password</ion-label>
                <ion-input color="primary" type="password" mode="ios" formControlName="password" required></ion-input>
            </ion-item>
            <span class="validation-errors" *ngIf="!credentialsForm.controls.password.valid && (credentialsForm.controls.password.dirty || onSaveAttempt)">Password
                is mandatory</span>
            <ion-item no-padding class="transparent-border">
                <div style="overflow: hidden;width: 100%">
                    <p class="create-account" (click)="doRegistrationNavigation()">Create an Account</p>
                    <p class="forgot-password">Forgot password?</p>
                </div>
            </ion-item>
        </ion-list>
    </form>
    <ion-button (click)="doLogin()" expand="block" shape="round" class="signin-button" color="vibrant">Sign
        In</ion-button>
</div>
</ion-content>


Any help is appreciated
Thanks and Regards
Anand Raj

Posts: 5

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 70439

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>