-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Prevent close on suggestion selected #1408
Comments
$(document).on("typeahead:beforeselect", function(event, data) {
event.preventDefault();
}); |
@laCour your tip is not more working, do you know another way to do it now? |
@zedtux It still works for me. If you're not using jQuery my example wont work and would require changes. What version of typeahead are you using? |
I double checked and while I was thinking using the version 0.11, I just discovered that I'm using the version 0.10.5. This should explain why it is not working. I'm upgrading to 0.11.1 and I'll check again. |
Hell yeah, it's working now, thank you :) |
Is there a way to prevent close the dropdown (.tt-menu) when a suggestion is clicked? I've searched a lot and none of these "hacks" works with current version:
The text was updated successfully, but these errors were encountered: