chosen icon indicating copy to clipboard operation
chosen copied to clipboard

Please expose AbstractChosen.browser_is_supported()

Open heldchen opened this issue 10 years ago • 11 comments

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.

heldchen avatar Sep 27 '13 22:09 heldchen

+1

vitawasalreadytaken avatar Apr 14 '15 04:04 vitawasalreadytaken

+1

vitobeto avatar Apr 15 '15 17:04 vitobeto

+1

zoldia avatar Jun 23 '15 13:06 zoldia

definitely +1

X-Aleks avatar Oct 24 '15 21:10 X-Aleks

+1

trsteel88 avatar Jan 29 '16 01:01 trsteel88

+1

gglin avatar Apr 08 '16 17:04 gglin

+1

validide avatar Feb 17 '17 17:02 validide

+1 cos i need tis now.

w3guy avatar Mar 16 '17 20:03 w3guy

+1

PhocaCz avatar Apr 19 '17 00:04 PhocaCz

+1

ytarefson avatar Jul 05 '17 11:07 ytarefson

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.

JavaScriptDude avatar Jun 29 '21 19:06 JavaScriptDude