ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

bug: Form input focus overlap over header on keyboard.

Open sanjeevthapa opened this issue 11 years ago • 27 comments

Type: bug

Platform: ios 8 webview

The issue is generally about the form input focus cursor overlapping over a header bar once the keyboard is open. lets sy I have a form in my view and once i try to input something keyboard opens and then if i scroll the view I can see the cursor above header.

sanjeevthapa avatar Nov 10 '15 09:11 sanjeevthapa

screen shot 2015-11-10 at 10 39 06 am screen shot 2015-11-10 at 10 38 46 am

See the screenshots. I just started an new ionic tabs app.

sanjeevthapa avatar Nov 10 '15 09:11 sanjeevthapa

At the end i did not found a good fix for this. So I decided to hide the keyboard if the user scroll a bit longer once the keyboard is opened. I wanted to my user to select or scroll the input when the keyboard is not opened.

Here is a quick snippet sample that I used.

$rootScope.getScrolled = function(){
    console.log('rame');
    var scrollTop = $ionicScrollDelegate.getScrollPosition().top;       
    if (window.cordova && window.cordova.plugins.Keyboard) {
        if(cordova.plugins.Keyboard.isVisible && scrollTop > 30){
            //close the keyboard
            console.log('unexpected behaviour trying to scroll on keyboard open');
            cordova.plugins.Keyboard.close();
        }
    }
}

sanjeevthapa avatar Nov 14 '15 21:11 sanjeevthapa

hey dude, the same problem occurred to my project. Is there any updates to fix that?

ghost avatar Nov 24 '15 10:11 ghost

Hi everyone, I have gotten the same problem on footer and header, have any idea to resolve that?

freehandvn avatar Nov 26 '15 03:11 freehandvn

Hi team, here is my problem

ezgif com-resize

freehandvn avatar Nov 26 '15 03:11 freehandvn

same issue here

emiledskar avatar Jan 12 '16 15:01 emiledskar

Any ideas?

eduardo-xyz avatar Jan 29 '16 21:01 eduardo-xyz

Same issue here. A fix, workaround or some idea very welcome.

niagara18 avatar Mar 17 '16 08:03 niagara18

+1

kaustubhkushte avatar Mar 21 '16 07:03 kaustubhkushte

Hello! Would you mind telling me what version of ionic you are currently using?

jgw96 avatar Mar 21 '16 14:03 jgw96

I used ionic with version 1.1.1 and got this issue

freehandvn avatar Mar 21 '16 14:03 freehandvn

I am using 1.2.4

kaustubhkushte avatar Mar 22 '16 18:03 kaustubhkushte

Hello everyone,

Dan from Ionic here.

Unfortunately there is nothing we can do about this at this time. Ionic/Cordova uses UIWebView from Apple behind the scenes, and this is a limitation of that. WKWebView is the name of the "next gen" Safari engine from Apple, and it is much better and more flexible. Basically - it gives us access to "events" that UIWebView does not. Unfortunately, there are some known limitations to using WKWebView in Ionic/Cordova apps at this time. We will keep the community in the loop with this issue.

For now, I am going to mark this as wontfix, but we will resolve this as soon as we can.

Thanks, Dan

danbucholtz avatar Apr 15 '16 14:04 danbucholtz

Same problem here! Any solution ?

thanks

rayashi avatar May 31 '16 12:05 rayashi

any solution for this problem?

sugir93 avatar Jul 09 '16 08:07 sugir93

Unfortunely no

2016-07-09 5:39 GMT-03:00 sugir93 [email protected]:

any solution for this problem?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/driftyco/ionic/issues/4619#issuecomment-231523483, or mute the thread https://github.com/notifications/unsubscribe/ABar7wywEpxcf0mWB2M9SwdaYpKZVfHGks5qT15bgaJpZM4GfRa0 .

Humberto Dib Rayashi

rayashi avatar Jul 11 '16 11:07 rayashi

Hello All, Is there anyone who found solution on this?

mashah1 avatar Aug 31 '16 17:08 mashah1

workaround: hide the keyboard while scrolling

ankitch01 avatar Sep 08 '16 06:09 ankitch01

@ankitch01 Can you please tell me where to add hiding keyboard?

mashah1 avatar Sep 08 '16 17:09 mashah1

@ioanis @Ionitron Did you guyz fixed this issue(except hiding keyboard on scroll)?

mashah1 avatar Sep 13 '16 18:09 mashah1