mirror of https://github.com/zulip/zulip.git
lightbox: Fix focus state when exiting lightbox.
Previously, exiting the lightbox and then hitting enter reopened the lightbox with a null image. Fixes #1982.
This commit is contained in:
parent
0f7c8c6d34
commit
bb23d6ed60
|
@ -313,6 +313,7 @@ exports.lightbox_photo = function (image, user) {
|
|||
exports.exit_lightbox_photo = function (image) {
|
||||
$("#overlay").removeClass("show");
|
||||
$(".player-container iframe").remove();
|
||||
document.activeElement.blur();
|
||||
};
|
||||
|
||||
exports.youtube_video = function (id) {
|
||||
|
|
Loading…
Reference in New Issue