Ionic v1.3.16 input field focus, scroll, text update issue for the last field on the form


#1

This is intermittent behavior, occurs for last field on the form. One in the following (or multiple) issue(s) occurs most of the times.

  • Input field does not get focus on first tap. I require to tap on it once again.
  • Input field does not update while typing. If tapped once again, typed text gets displayed.
  • Input field hides behind soft keyboard. After starting typing it becomes visible with 2nd issue.

Any idea why this is happening? I added these issues to github as well.

Also found that these issues were on github, and are closed an year before.

I am able to reproduce the issue on Moto e (1st Gen.) Android v4.4, Samsung Galaxy Grand Android v4.2.2, Samsung Trend Android v4.1.2


#2

Hello, i experienced a similar issue. Did you have any clue ?


#3

Try this:

$ionicPlatform.ready(function () {           
     ionic.Platform.isFullScreen = true;
});

snippet 2:

if(window.device){
 $scope.platform = device.platform;
 if($scope.platform == "iOS"){
	 if(toState.url != "/pageURL"){//url of page having issue
		 if (window.cordova && window.cordova.plugins.Keyboard) {
			 cordova.plugins.Keyboard.disableScroll(true);
		 }
	 }else{
		 if (window.cordova && window.cordova.plugins.Keyboard) {
			 cordova.plugins.Keyboard.disableScroll(false);
		 }
	 }
 }

}

Hope this will solve the issue