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 binding of event handler to `blur` event.

Hashir Sarwar946836455c75
diff --git a/static/third/bootstrap-typeahead/typeahead.js b/static/third/bootstrap-typeahead/typeahead.js
index 0902438dd47..1d29d3b7024 100644
--- a/static/third/bootstrap-typeahead/typeahead.js
+++ b/static/third/bootstrap-typeahead/typeahead.js
@@ -307,7 +307,7 @@
, listen: function () {
this.$element
- .on('blur', this.blur(this))
+ .on('blur', this.blur.bind(this))
.on('keypress', this.keypress.bind(this))
.on('keyup', this.keyup.bind(this))