bassjobsen/Bootstrap-3-Typeahead

Leave Typeahead dropwdown open after :unfocus event

mikeploeger opened this issue · 0 comments

Hello! I can't find a working way to leave a dropdown open, after the unselect event (By example, the 'unfocused' event is triggered, if the user clicks "Done" on the keyboard on an iPhone or clicks anywhere on the page).

On the "original" there seem to be events like:

$(document).on("typeahead:beforeselect", function(event, data) {
        event.preventDefault();
    });

But that doesn't work with this fork.

Question:
How do I prevent the dropdown from closing in an :unfocus event?