mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +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) {
 | 
					exports.exit_lightbox_photo = function (image) {
 | 
				
			||||||
    $("#overlay").removeClass("show");
 | 
					    $("#overlay").removeClass("show");
 | 
				
			||||||
    $(".player-container iframe").remove();
 | 
					    $(".player-container iframe").remove();
 | 
				
			||||||
 | 
					    document.activeElement.blur();
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
exports.youtube_video = function (id) {
 | 
					exports.youtube_video = function (id) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user