The content scrolls up when tapping on a readonly ion-input


#1

Hi there,

I’m using the readonly attribute on some inputs to prevent the native keyboard to pop up.(I’m showing custom js component instead.)

When I tap on an input which is readonly the keyboard show is prevented, but the content starts to scroll up as the input was displayed. Is this a bug?

Is there a way to prevent the content scrolling in this case when the keyboard is not displayed?

I’m using ionic 3:

@ionic/cli-utils : 1.4.0
Cordova CLI      : 7.0.1
Ionic CLI        : 3.4.0

local packages:

@ionic/app-scripts              : 1.3.12
@ionic/cli-plugin-cordova       : 1.4.0
@ionic/cli-plugin-ionic-angular : 1.3.1
Cordova Platforms               : none
Ionic Framework                 : ionic-angular 3.5.0

Any help is really apreciated.
Thanks


#2

Sounds a bit like one, I see no reason why this should happen. Search if there is already an issue at https://github.com/ionic-team/ionic/issues and create one if there is not.