ibm-js / deliteful

Multichannel (desktop/mobile) UI Custom Elements Library
http://ibm-js.github.io/deliteful
Other
70 stars 36 forks source link

Combobox displays in desktop mode on iOS 13.1+ #723

Closed wkeese closed 4 years ago

wkeese commented 4 years ago

On iOS 13.1 and iOS 13.2, Safari has a bizarre navigator.userAgent of:

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Safari/605.1.15

As such, the following has() flags have the wrong values:

Luckily, these flags aren't used much, but the one place they are used is for Combobox. This is causing Combobox to display in desktop mode on iOS, which breaks VoiceOver support and doesn't work well on small screens either (even for sighted users).

Note: the user agent on iOS 13.0 seems to be ok, see https://qiita.com/niwasawa/items/df30ffddf2e709b2ca43.