chosen
chosen copied to clipboard
Please expose AbstractChosen.browser_is_supported()
currently, there seem to be no way to know beforehand if the current browser is supported. even by binding to "chosen:ready" one cannot be sure if the browser is really not supported, or if chosen is still in the process of loading.
by exposing the browser_is_supported() one would have a way to know for sure if chosen supports the current mobile browser.
+1
+1
+1
definitely +1
+1
+1
+1
+1 cos i need tis now.
+1
+1
I've created a fork which does this via a global namespace: window.JQuery_Chosen.browser_is_supported()
The fork also includes an override flag to have chosen ignore this check. This will allow some working mobile devices where the developer is aware of the constraints of using chosen for mobile. For example, if the mobile interface is simply a desktop interface, it's ok to use chosen.
Chosen on mobile is a bad idea only for mobile designed UI's which unfortunately is unspoken in issue #1388.