mirror of
https://github.com/zulip/zulip.git
synced 2025-11-08 16:01:58 +00:00
Fixed compose box PM recipient typeahead handling of focus.
This closes #2315.
This commit is contained in:
8
static/third/bootstrap/js/bootstrap.js
vendored
8
static/third/bootstrap/js/bootstrap.js
vendored
@@ -1843,10 +1843,10 @@
|
||||
|
||||
constructor: Typeahead
|
||||
|
||||
, select: function () {
|
||||
, select: function (e) {
|
||||
var val = this.$menu.find('.active').data('typeahead-value')
|
||||
this.$element
|
||||
.val(this.updater(val))
|
||||
.val(this.updater(val, e))
|
||||
.change()
|
||||
return this.hide()
|
||||
}
|
||||
@@ -2067,7 +2067,7 @@
|
||||
case 9: // tab
|
||||
case 13: // enter
|
||||
if (!this.shown) return
|
||||
this.select()
|
||||
this.select(e)
|
||||
break
|
||||
|
||||
case 27: // escape
|
||||
@@ -2098,7 +2098,7 @@
|
||||
, click: function (e) {
|
||||
e.stopPropagation()
|
||||
e.preventDefault()
|
||||
this.select()
|
||||
this.select(e)
|
||||
}
|
||||
|
||||
, mouseenter: function (e) {
|
||||
|
||||
Reference in New Issue
Block a user