Skip to content
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

[Ionic 2] Tapping on disabled/readonly ion-input scrolls without showing the keyboard. Gif attached. #9070

Closed
fuggfuggfugg opened this issue Nov 7, 2016 · 8 comments
Assignees
Milestone

Comments

@fuggfuggfugg
Copy link

Not sure if this is a bug.

Short description of the problem:

I have a profile page where fields are setup as readonly & disabled for now but will be editable in the future.

What behavior are you expecting?

Tapping on the disabled input fields adds scrolling.
bug

Run ionic info from terminal/cmd prompt: (paste output below)

Your system information:

Cordova CLI: 6.3.1
Ionic Framework Version: 2.0.0-rc.1
Ionic CLI Version: 2.1.0
Ionic App Lib Version: 2.1.0-beta.1
ios-deploy version: 1.9.0
ios-sim version: 5.0.8
OS: Mac OS X El Capitan
Node Version: v6.7.0
Xcode version: Xcode 8.0 Build version 8A218a

@fuggfuggfugg fuggfuggfugg changed the title Tapping on disabled/readonly ion-input scrolls without showing the keyboard. Gif attached. [Ionic 2] Tapping on disabled/readonly ion-input scrolls without showing the keyboard. Gif attached. Nov 8, 2016
@jgw96
Copy link
Contributor

jgw96 commented Nov 9, 2016

Hello, thanks for using Ionic! Does this issue also happen on an Android device running the same app? Also, if you add this:

IonicModule.forRoot(MyApp, {
      scrollAssist: false
}) ;
``` to your `app.module.ts` file does it still happen? Thanks!

@jgw96 jgw96 added needs: reply the issue needs a response from the user v2 labels Nov 9, 2016
@fuggfuggfugg
Copy link
Author

Sorry for the late response. The scrollAssist seems to have done the trick on ionic view and emulator at least. I'll test on android and report back soon.

btw what is the difference between scrollAssist and autoFocusAssist?

@jgw96 jgw96 added this to the 2.0.0-rc.4 milestone Nov 28, 2016
@jgw96
Copy link
Contributor

jgw96 commented Nov 28, 2016

@adamdbradley just tested this with the scroll branch and it seems to still be an issue.

@jgw96 jgw96 removed the needs: reply the issue needs a response from the user label Nov 28, 2016
@j3gb3rt
Copy link

j3gb3rt commented Dec 1, 2016

It doesn't seem that scrollAssist or autoFocusAssist are listed in the config API docs. Are these referred to somewhere else in the documentation?

@haydenJogs92
Copy link

Just updated to RC 5 - I have a readonly input and this issue is still present. Ion-scroll is adding margin-bottom to make room for the keyboard - but none appears.

@charIeszhao
Copy link

charIeszhao commented Apr 18, 2017

@haydenJogs92 Same here! This is also a bug.
I tried to use a readonly input field and bind the (click) handler on it. When I tap the field on emulator, the screen gets scrolled a bit and nothing happens. I have to click a second time in order to trigger the click event.
I also tried disabled=true, it worked. But I don't want to gray out the text displayed in the input field. I think for now, I've got to set it as disabled and use extra CSS styles to change the text color.

==== Edit =====

IonicModule.forRoot(MyApp, {
scrollAssist: false
}) ;
This works for me and I haven't found any fallback. Thanks.

@felix9607
Copy link

This seems to be still an issue, at least for me.
Adding this:

IonicModule.forRoot(MyApp, {
scrollAssist: false
}) ;

Disables it for all Inputs, but I want this to happen only for "readonly".

Ionic info:

    @ionic/cli-plugin-proxy : 1.4.12
    @ionic/cli-utils        : 1.13.0
    ionic (Ionic CLI)       : 3.13.0

global packages:

    cordova (Cordova CLI) : 7.1.0

local packages:

    @ionic/app-scripts : 3.0.0
    Cordova Platforms  : android 6.3.0 ios
    Ionic Framework    : ionic-angular 3.7.1

System:

    Node : v6.11.3
    npm  : 3.10.10
    OS   : Windows 10

Misc:

    backend : pro

@ionitron-bot
Copy link

ionitron-bot bot commented Sep 1, 2018

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. 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.

@ionitron-bot ionitron-bot bot unassigned jgw96 Sep 1, 2018
@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 1, 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

9 participants