diff --git a/src/jquery.uls.core.js b/src/jquery.uls.core.js index 32ea093..a7c4680 100644 --- a/src/jquery.uls.core.js +++ b/src/jquery.uls.core.js @@ -147,7 +147,10 @@ } this.$menu.show(); this.shown = true; - this.$languageFilter.focus(); + + if ( !this.isMobile() ) { + this.$languageFilter.focus(); + } }, i18n: function() { @@ -321,6 +324,10 @@ isSupported = typeof this.$element[eventName] === 'function'; } return isSupported; + }, + + isMobile: function () { + return navigator.userAgent.match( /(iPhone|iPod|iPad|Android|BlackBerry)/ ); } }; diff --git a/src/jquery.uls.languagefilter.js b/src/jquery.uls.languagefilter.js index b72b237..fd44479 100644 --- a/src/jquery.uls.languagefilter.js +++ b/src/jquery.uls.languagefilter.js @@ -104,7 +104,10 @@ */ deactivate: function() { this.$element.val( '' ); - this.$element.focus(); + + if ( !$.fn.uls.Constructor.prototype.isMobile() ) { + this.$element.focus(); + } this.toggleClear(); this.autofill(); },