Skip to content

Commit 85d77c0

Browse files
committed
Update SelectBox.js
1 parent 4e63c89 commit 85d77c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/SelectBox.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272

7373
function init() {
7474
// TODO: don't use userAgent matching to detect defaulting to device specific behavior
75-
_useDefaultBehavior = navigator.hasOwnProperty('screenOrientation');
75+
_useDefaultBehavior = navigator.userAgent.match(/iPad|iPhone|Android|IEMobile|BlackBerry/i) ? true : false;
7676

7777
if( _useDefaultBehavior ) {
7878
cfg.selectbox.addClass("use-default");

0 commit comments

Comments
 (0)