简体   繁体   中英

Typeahead blur event not fired on iPhone

I have a simple bootstrap typeahed directives which works fine. But on an iPhone the drop down menu doesn't closed on blur (when I touch else where on my page).

It does works when I try on the typeahaed demo page on an iPhone.

Do I need to do anything special for the blur events to get fired when clicking on my body?

I found a fix for my problem which solve the closing of the dropdown on iPhone and iPad.

I've just added on mobile devices the css rule:

body { cursor: pointer; }

That's it!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM