Commit 71f16160 authored by Sarah Kirby's avatar Sarah Kirby Committed by Cecilia Vela Gurovic
Browse files

Bug1776814: Ensure search field doesn't close on mobile when field is focused

behatnotneeded

Change-Id: I5353e13e4e41bfcf742cb013e5640288e6f03bda
parent b598ef88
......@@ -270,7 +270,7 @@ jQuery(function($) {
// keyESCAPE constant is used since jQuerty.ui is not loaded on all pages
var keyESCAPE = 27;
if (
(event.type=='click' && !$(event.target).closest('.navbar-toggle').length) ||
(event.type=='click' && !$(event.target).closest('.navbar-toggle, .navbar-form').length) ||
(event.type == 'keyup' && event.keyCode == keyESCAPE)
) {
$('.navbar-collapse.collapse.in').collapse('hide');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment