Skip to content

Commit

Permalink
Mobile navigation fix
Browse files Browse the repository at this point in the history
Pulled over from defunct "master" branch:

(cherry picked from commit b18c672)
  • Loading branch information
ama39 authored and alisonjo315 committed Jul 9, 2021
1 parent 548a5e0 commit 734e40e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/cwd_utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ var msie = document.documentMode;
});

// Mobile Navigation
$('.dropdown-menu li.parent > a .fa').click(function(e) {
$('.dropdown-menu li.parent > a .fa').addClass('aria-target').attr('tabindex','-1').click(function(e) {
e.preventDefault();
e.stopPropagation();
}).mousedown(function(e) {
Expand Down Expand Up @@ -322,7 +322,7 @@ var msie = document.documentMode;
});
// auto-close on loss of focus
var focus_timeout;
$('#main-navigation a, #main-navigation button').focus(function() {
$('#main-navigation a, #main-navigation button, #main-navigation .fa').focus(function() {
if ( $('body').hasClass('mobile') ) {
clearTimeout(focus_timeout);
}
Expand Down

0 comments on commit 734e40e

Please sign in to comment.