-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typeahead does not hide when using with queryBy: ['name', 'username'], #13
Comments
Are you using the CSS that came with the library? Does changing your code to the following help?: $.ajax({
type: "POST",
url: "http://linkzone.dev/ajax/follower/select",
data: '',
dataType: 'json',
cache: false,
async: false,
success: function (result) {
$("#usermention").mention({
delimiter: '@',
queryBy: ['name', 'username'],
users: result
});
},
error: function (xhr, textStatus, errorThrown) {
}
}); |
Nope , Still same. Yeah i am using recommended-styles , Also this happens only with "@tejas" of the json response. $("#usermention").mention({ |
@k-tejas @jakiestfu fixed the bug. you can use my Mention.js Fork till my pull-request approves |
thanks @bijanebrahimi |
I have following code :
var following_list;
AJAX request return following data :
[
{
"name":"Reagan Dietrich",
"username":"Reagan8"
},
{
"name":"Ashlynn Powlowski",
"username":"Ashlynn4"
},
{
"name":"Tejas Kulkarni",
"username":"tejas"
}
]
Now when I use trigger like @tejas and after that even though I put a space bar/enter key still it shows up the typeahead , also it deletes any further text .
When i use it with queryBy: ['username'] It works fine .
The text was updated successfully, but these errors were encountered: