Skip to content

Native keyboard blocks ion-input inside ion-item-sliding #9642

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
nilswieber opened this issue Dec 14, 2016 · 3 comments
Closed

Native keyboard blocks ion-input inside ion-item-sliding #9642

nilswieber opened this issue Dec 14, 2016 · 3 comments

Comments

@nilswieber
Copy link

nilswieber commented Dec 14, 2016

Ionic version: (check one with "x")
[ ] 1.x
[x] 2.x

I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/

Current behavior:
If an ion-input is added inside an ion-item-sliding the content doesn't scroll correctly, if the input that is focused by the user, is in the area where native keyboard will popup (e.g. at the bottom of the screen) on Android or iOS.

So the ion-input remains overlapped by the keyboard.
Expected behavior:
The Content should scroll up, if the input that the user selected lays in the area, that the native keyboard will block on Android or iOS.

Steps to reproduce:
Here is a repository that demonstrates this issue Github Repository
Plunker NOTE: Issue is only reproducible with a software keyboard! So run the Plunker in Fullscreen on a mobile device.
The issue can be reproduced with an Android Emulator with the current Ionic Nightly or 2.0.0-rc.3

Related code:

<ion-content>
    <ion-list>
          <ion-item-sliding *ngFor="let i of items">
            <ion-item>
                  <ion-label>{{i}}</ion-label>
                  <ion-input></ion-input>
            </ion-item>
            <ion-item-options side="right">
              <button ion-button color="primary">
                <ion-icon name="trash"></ion-icon>
                Delete
              </button>
            </ion-item-options>
          </ion-item-sliding>
    </ion-list>
</ion-content>

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):

Your system information:

Cordova CLI: 6.4.0 
Ionic Framework Version: 2.0.0-rc.3-201612122136
Ionic CLI Version: 2.1.14
Ionic App Lib Version: 2.1.7
Ionic App Scripts Version: 0.0.45
ios-deploy version: 1.9.0 
ios-sim version: 5.0.12 
OS: macOS Sierra
Node Version: v6.9.1
Xcode version: Xcode 8.1 Build version 8B62
@jgw96 jgw96 added the v2 label Dec 14, 2016
@masimplo
Copy link
Contributor

Maybe you should join the discussion on #5432

@nilswieber
Copy link
Author

I just want to note that this issue is still present in RC4

@ionitron-bot
Copy link

ionitron-bot bot commented Mar 26, 2018

Thanks for the issue! This issue is being closed due to inactivity. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

Thank you for using Ionic!

@ionitron-bot ionitron-bot bot closed this as completed Mar 26, 2018
@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Mar 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants