mirror of
https://github.com/zulip/zulip.git
synced 2025-10-31 20:13:46 +00:00
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:
committed by
Tim Abbott
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) {
|
||||
|
||||
Reference in New Issue
Block a user