diff --git a/bootstrap-typeahead.js b/bootstrap-typeahead.js index abc48d5..38c5313 100644 --- a/bootstrap-typeahead.js +++ b/bootstrap-typeahead.js @@ -46,7 +46,8 @@ , select: function () { var val = this.$menu.find('.active').attr('data-value') this.$element - .val(this.updater(val)) + .focus() + .val(this.updater(val)+" ") .change() return this.hide() }