Alert messages appear behind on-screen keyboard

Originator:martin.selincourt
Number:rdar://26768497 Date Originated:13 Jun 2016
Status:Open Resolved:
Product:iOS Safari Product Version:9.3.2
Classification: Reproducible:
 
Summary:
If submitting a form using the Go button on the soft keyboard causes an alert message to appear, the alert will pop up behind the keyboard (if the iPad is in landscape orientation).  The keyboard stays open which means the user can press Go again, which causes the keyboard to become unresponsive.

Steps to Reproduce:
1) Open the attached HTML file, or any file which calls javascript alert() when submitting a form containing a text input.
2) Focus a text input in the form to open the soft keyboard
3) Press Go on the keyboard


<!DOCTYPE html>
<html lang=en>
<body>

<form action='javascript:check_empty();'>
<input id='theinput' value=""></input>
</form>

<script type='text/javascript'>
function check_empty()  {
   if( document.getElementById('theinput').value == "" ) {
      alert( "Please enter a value" );
   }
}
</script>

</body></html>

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!