nnyby nnyby - 1 year ago 105
iOS Question

blur event not firing on iOS Mobile Safari in Sencha Touch

I'm using iOS 5.0.1, and Sencha Touch 2-rc1. I have a search input field where the focus event is getting triggered, as well as the submit event when I press 'Search' on the on-screen keyboard. The blur event doesn't get triggered when I expect it to, which would be when the 'Done' key is pressed, or the viewable area is tapped.

Note that the blur event IS getting triggered on my laptop in Chrome.

Answer Source

This is likely to be related to the event not "bubbling" up through the DOM. Or perhaps the code you've used includes an event.preventDefault(), but that would have killed more than just blur. I've also had this issue with clicking away from items which appear via javascript.


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download