bassjobsen / Bootstrap-3-Typeahead

The Typeahead plugin from Twitter's Bootstrap 2 ready to use with Bootstrap 3 and Bootstrap 4

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Selecting an item triggers 2 change events?

CoinCoderBuffalo opened this issue · comments

commented

$("#parentIdInput").change(function(){
var current = $("#parentIdInput").typeahead("getActive");
console.log(current);
$(this).val(current.id);
});

I get two responses from this...

commented

Fixed it after adding these two options:
changeInputOnSelect: false,
changeInputOnMove: false