Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

typeahead: Fix bug where change event was not triggered post selection.

N-Shar-mad491c7d53cae
diff --git a/web/src/bootstrap_typeahead.js b/web/src/bootstrap_typeahead.js
index 8a159286d31..460f2ee2a30 100644
--- a/web/src/bootstrap_typeahead.js
+++ b/web/src/bootstrap_typeahead.js
@@ -201,6 +201,7 @@ Typeahead.prototype = {
// select / highlight the minimal text to be replaced
this.$element[0].setSelectionRange(from, to_before);
insertTextIntoField(this.$element[0], replacement);
+ this.$element.trigger("change");
}
return this.hide();