typeahead: Fix binding of event handler to blur event.

This was a bug in 0f76e98 that prevented typeahead from
closing unless we select an option from it.

Fixes #15905 and #15907.
This commit is contained in:
Hashir Sarwar
2020-07-28 05:06:09 +05:00
committed by Anders Kaseorg
parent 3252dfaa72
commit 946836455c

View File

@@ -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))