mirror of https://github.com/zulip/zulip.git
composebox: Blur PM recipient input after close.
Previously the private_message_recipient input remained focused after
closing the composebox with Escape. On Firefox this resulted in it
gobbling up all further keyboard shortcuts until you clicked
somewhere. On Chromium this bug didn't occur because it automatically
blurs hidden inputs.
Introduced in 3a1bf04a56
.
Fixes #15849.
This commit is contained in:
parent
ae497c68ab
commit
ed5a56ce53
|
@ -1,7 +1,7 @@
|
|||
const autosize = require("autosize");
|
||||
|
||||
exports.blur_textarea = function () {
|
||||
$(".message_comp").find("input, textarea, button").trigger("blur");
|
||||
$(".message_comp").find("input, textarea, button, #private_message_recipient").trigger("blur");
|
||||
};
|
||||
|
||||
function hide_box() {
|
||||
|
|
Loading…
Reference in New Issue