javascript - jquery chosen select add vertical scrollbar on mobile devices -


i'm using chosen select (v.1.6.2) , 1 of selects country select. found out there different behavior on mobile devices, in case need same behavior on desktops, found in chosen.jquery.js file code detecting mobiles around line 546 , commented return false below:

 abstractchosen.browser_is_supported = function() {     if ("microsoft internet explorer" === window.navigator.appname) {       return document.documentmode >= 8;     }     if (/ip(od|hone)/i.test(window.navigator.useragent) || /iemobile/i.test(window.navigator.useragent) || /windows phone/i.test(window.navigator.useragent) || /blackberry/i.test(window.navigator.useragent) || /bb10/i.test(window.navigator.useragent) || /android.*mobile/i.test(window.navigator.useragent)) {       //return false;  <---- here     }     return true;   }; 

but found out there no vertical scrollbar (which it's shown fine on desktop version) , can't scroll options finger, how fix on mobile? (i have input element filtering , works fine).

maybe stay mobile version, own styles chosen select gone, that's way prefer have desktop functionality on mobile devices.


Comments

Popular posts from this blog

PHP while loop dynamic rowspan -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

Spring Boot + JPA + Hibernate: Unable to locate persister -