Skip to content

Keyboard Issues #11501

Closed
Closed

Description

@jgw96

Ionic version: (check one with "x")
[ ] 1.x
[x] 2.x
[x] 3.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:

Keyboards and input scrolling have long been a challenge for Ionic apps, even going all the way back to Ionic V1. We have recently put a focus on trying to knock out these keyboard issues. The issues we currently think are the highest priority when it comes to keyboards and inputs are the following:

  • inputs in alerts are sometimes "wonky"
  • Forms that have a lot of inputs sometimes have scrolling issues when focusing inputs lower down on the page
  • Switching between inputs, textareas and more sometimes causes "bouncing" and other weird UI issues
  • Having an input locked to the bottom of a view does not work correctly on iOS (the keyboard covers the input)

We are currently working on a two-pronged approach of modifying the logic in the framework that handles this stuff (mainly for Android) along with some modifications to the WKWebView plugin to fix these issues for iOS. We are at a point now where we have a branch of the WKWebView plugin that has the fixes for iOS and are ready for our community to start testing this and providing feedback. We have made a Google doc here that has instructions on how this can be tested. We would love to have feedback on these fixes! Feel free to provide feedback as a comment to this issue. Thanks for using Ionic everyone!

Activity

  1. added
    help wanted
    on May 3, 2017
  2. naveedahmed1 commented on May 3, 2017

    @naveedahmed1

    In my case AppModule adding below import produces relatively better user experience than the defaults.

    IonicModule.forRoot(MyApp, {
                scrollPadding: false,
                scrollAssist: true, 
                autoFocusAssist: false
            }),
    
  3. comfortme commented on May 4, 2017

    @comfortme

    thank god finally prayers are answered

  4. kabus202 commented on May 4, 2017

    @kabus202
    1. Search bar within tab pushes tabbar up.
  5. added this to the milestone on May 5, 2017
  6. mburger81 commented on May 5, 2017

    @mburger81
    Contributor

    How to Test on Android?
    We are happy to help always for Android or Desktop. :)

  7. jgw96 commented on May 5, 2017

    @jgw96
    ContributorAuthor

    Hey @mburger81 , good question! There is not an updated nightly version of ionic-angular out yet, but when we release one I will update this issue with the instructions on how you can install it for testing on android.

  8. mburger81 commented on May 5, 2017

    @mburger81
    Contributor

    Okay thx, we are working on a login page where we have some input scroll issues.
    So I think we can check it.

    FYI before we can test it and release it to our tester, we need to have resolved the INVALID VIEWS bug (happy for the milestone) , because this is a breaking issue to us

  9. jgw96 commented on May 5, 2017

    @jgw96
    ContributorAuthor

    Got ya! So on the input scroll issue, can you try placing the input in an area of your view that the keyboard does not cover when its opened?

  10. aspidvip commented on May 7, 2017

    @aspidvip

    This is a good idea. It is necessary to make sure that the cursor does not go behind the bar, when scrolling

  11. aspidvip commented on May 7, 2017

    @aspidvip

    It is necessary to make, that the cursor did not block ion-header, at a scrolling

  12. jgw96 commented on May 9, 2017

    @jgw96
    ContributorAuthor

    Some iOS feedback from one of our team members @danbucholtz :

    On individual controls that are not typically used within a form (for example a search input), can we investigate closing the keyboard on "submit" or "enter"?

    When performing a navigation action, the keyboard is automatically closed if it's open. We should revisit this behavior with regard to overlays. For example, I cannot imagine there are many use cases when opening a modal and keeping the keyboard open. ActionSheet, Alert, Loading, Modal, Popover, Picker, and Toast all imply the start of a new action (Picking a time for example) or feedback on a completed action (submitting or validating a form or something). I think it makes sense to close the keyboard in the case of opening an overlay.

  13. aspidvip commented on May 10, 2017

    @aspidvip

    chats.html

    <ion-footer *ngIf="send.load_spinner==false" class="backgound_send_message">
    <ion-toolbar>
    
    <textarea *ngIf="Record.StartRecordGo==false" [(ngModel)]="you_comment" (keydown)="handleKeyDown($event)" (focus)="scrollTobottom()" placeholder="{{'chats.message' | translate }}"  id="my-textarea0" class="my-textarea" rows="1" autosize></textarea>
    
        <button ion-button clear large color="primary" *ngIf="send.you_comment.length>0" (click)="SendMessageServer(items)"><ion-icon class="SendMess" ios="ios-send-outline" md="md-send"></ion-icon></button>
    
    
    </ion-toolbar>
    </ion-footer>
    

    chats.ts

    SendMessageServer(items) {
        this.text_message_me.push(this.you_comment);
       document.getElementById('my-textarea0').focus(); // The keyboard remains open
    }
    

    This code it's work (OPEN KYEBOARD)

  14. 90 remaining items

  15. locked and limited conversation to collaborators on Nov 28, 2018
  16. unlocked this conversation on Nov 28, 2018
  17. ionitron-bot commented on Dec 7, 2018

    @ionitron-bot

    Thanks for the issue! We have moved the source code and issues for Ionic 3 into a separate repository. I am moving this issue to the repository for Ionic 3. Please track this issue over there.

    Thank you for using Ionic!

  18. ionitron-bot commented on Dec 7, 2018

    @ionitron-bot

    Issue moved to: ionic-team/ionic-v3#827

  19. locked and limited conversation to collaborators on Dec 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wanted

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions