Join GitHub today
Popup Reappears after closing when textarea input field expanded on iOS 6 #5157
On iOS 6, I have an issue when I use a textarea inside of a popup. Here is my HTML:
When the popup opens, if I enter multiple lines of text in the textarea and it expands down, then click the Close button, the popup closes and then reopens until I rotate the display or refresh the page.
I'm also experiencing this issue, but it doesn't happen every time.
After reappearing, the popup cannot be closed with either the close button added to the header of the popup using the data-rel="back" attribute or clicking outside the popup itself.
I also tried using onclick="$('#id').popup('close');" on a button with no success.
<div id="id" data-role="popup" style="width: 600px"> <div data-role="header"> <h3> TestEntry</h3> </div> <div data-role="content"> <label>Test:</label> <input id="test" type="text" /> <a href="#" data-role="button" data-icon="delete" onclick="$('#id').popup('close');">Cancel</a> <button type="submit" data-theme="b">OK</button> </div> </div>
I looked at the issue too, it seems that it is happening only when you resize the popup entering the text, clicking on the close button while your keyboard is on.
It is never happened when you turn off the keyboard and click the close button.
I believe when you click the stop button, keyboard is sliding down causing the document to resize (maybe the resize event), therefore emitting the show event on the popup.