Autocomplete not working with some mobile browsers when using non-latin characters

4.5k views Asked by At

I use jQuery 1.7.2 with jQuery UI autocomplete 1.8.22 and it works fine with all pc based browsers

On mobile browsers other than Chrome, when the search terms are using non-latin characters (let's say greek) other mobile browsers such as Firefox and Safari fail.

Are there any known issues I should be aware that affects mobile Firefox and Safari?

2

There are 2 answers

1
Teodoros On BEST ANSWER

The solutions i have found for solve the problem is

$('#element').on('input', function(){
    $(this).autocomplete("search", $(this).val());
});
0
tylik On

I think the problem is that this version of ui autocomplete is not optimized for input events on mobile browsers. Mobile firefox doesn't support keyup and keydown events. In later versions of jQuery ui this problem is fixed.

Here is the link on jquery forum describing this problem. http://bugs.jqueryui.com/ticket/8263