Skip to content

Commit 9532bef

Browse files
committed
added fix for chrome on android
this will add ability to select item in dropdown list in Chrome on Android
1 parent 90b997a commit 9532bef

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

jquery.selectBox.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,10 @@
300300
if (event.screenX === options.data('selectBox-down-at-x') &&
301301
event.screenY === options.data('selectBox-down-at-y')) {
302302
options.removeData('selectBox-down-at-x').removeData('selectBox-down-at-y');
303+
if (/android/i.test(navigator.userAgent.toLowerCase()) &&
304+
/chrome/i.test(navigator.userAgent.toLowerCase())) {
305+
self.selectOption($(this).parent());
306+
}
303307
self.hideMenus();
304308
}
305309
}

0 commit comments

Comments
 (0)