The input loses focus but does not blur when the user scrolls the page or clicks outside the text box

So, I have a form in the phonegap / cordova (2.0) application. It is located on the page inside the iframe and behaves as usual in most cases. The problem arises when you click on the input field, and then either accidentally touch outside the input, or scroll the page at all. The input still has a blue carrot showing that it has focus, and the blur event is not triggered in javascript, but you cannot edit the input. Refocusing the text field does not cause a focal event, nor does it allow you to enter a test. You must focus another element (which blurs the input) and then reorient it.

Is there any way to prevent input from psuedo-loss focus? I don’t want to blur the input when the user scrolls, which will close the keyboard and lead to other problems (we had a problem before clicking outside the input closes the keyboard and the blank a second mouse click while the page was moving ... we managed finally get rid of her though).

+5
source share

All Articles