jquery ui autocomplete suggestion are not closing after entering space between typed words
Asked Answered
J

1

2

Hi I have previously opened this thread How to tag users in feed like Facebook or Twitter does?. I am working with jquery autocomplete & so far I have this code with me.

Now when I am entering @user-name the suggestions are appearing. But when I hit spacebar the suggestions still remain there. Ideally suggestions should disappear as I hit space bar as we experience in facebook. Please help me to get the ideal behaviour. Thank you!

Jam answered 25/10, 2011 at 7:42 Comment(1)
I'm actually not seeing that with Facebook... It looks like when you hit space sometimes new suggestions come up. Additionally, with the code you're using options should disappear unless there's a space in the autocomplete option in the dropdown.Anaphylaxis
R
1

Edit your code to add one more line to else scope on line number 45

else
{
    $( "#birds" ).blur().focus();
    return false;
}

I'm sure it will fix the problem.

Rainfall answered 28/2, 2012 at 8:30 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.