Open ryanjstout opened 7 years ago
Any notice about this ? We found the same issue and it's very easy to reproduce with Firefox and Chrome dev tools on any desktop computer.
Self-reply . This is intentional as on Android and iPhone/iPad uses native controls for the UI but keeps working the whole JavaScript API over Choosen.js
We had reports of certain mobile users unable to interact with Chosen dropdowns (which we thought shouldn't fire for mobile at all). However, we found that not all mobile devices are caught in the mobile device check.
browser_is_supported
check inabstract-chosen.coffee
file (starts atline 375
) doesn't include all potential mobile devices window.navigator.userAgent possibilities. We found one mod and adding two additional checks solved for our situation in real device testing (noted at end), but there are likely others?Reproduce:
browser_is_supported
check.Chosen Version:
Fix/Resolution We found two additional lines that solved our device tests. However, I'm sure there are more... and potential for laptops with built-in wifi/cell (like 4G LTE card) to be flagged as mobile. We were unable to test this.
browser_is_supported
check inabstract-chosen.coffee
(line 372
) can be updated to:Final thoughts