twbs / ratchet

Build mobile apps with simple HTML, CSS, and JavaScript components.
http://goratchet.com
MIT License
14.63k stars 1.45k forks source link

Modal closes but holds element focus #588

Open lovato opened 10 years ago

lovato commented 10 years ago

I mixed up some of the examples, to create my application.

Then I faced a problem. I developed an android webview app, and pointed it to:

http://lovato.geek42.org/tprs_proto/githubissue.html

Steps to reproduce:

That text field kept the focus, and thus keyboard keeps opening till I touch background, then putting focus on nowhere.

Any idea? Catch modal close to blur any field?

lovato commented 10 years ago

I am using 4.4.2, and tested on Nexus3 CM11. Same behavior.

lovato commented 10 years ago

I tried on a Galaxy Tab 2 10" 4.1.2, and the problem does seem to happen. And differently, the keyboard pops out when I enter modal#2, with a form. The modal#1 which asks for email/name/etc does not fire the keyboard.

On my MotoG the keyboard only pops out when I touch a editable field.

lovato commented 10 years ago

I reproduced it with the examples provided by Ratchet. Same thing (i.e its not my code :-) )