I'm using jQuery UI Autocomplete 1.8.1
with Jquery 1.4.2
and I have this issue.
At first, I can't force the value of the Autocomplete input field, well this is not a big problem.
But I have this issue with it:
I doesn't act similarly when a user select
a choice using mouse to using keyboard arrows. When using keyboard everything is fine and the value appears after select in the input text box, but when using mouse it sticks with the old (typed) value not the selected one.
How to control this (textbox value after select)? and why there are different behaviours?
P.S: changing the value of the input box inside the select
function is useless since it can't be done!
or you can add it in select
select: function( event, ui ) {
$('#input').val(ui.item.value);
}
I had a similar problem to this.
When using the keyboard the focus from the text box is lost, but on click the focus goes back to the text box.
It could be that you have something happening on the focus of the input field which is being re-triggered?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With