Skip to content

Commit 7f74edc

Browse files
committed
fix the link being focused after click problem
If you click any link in nav bar, and then scroll away, that clicked link will stay highlighted
1 parent 74e5c06 commit 7f74edc

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

js/grayscale.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ $('.navbar-collapse ul li a').click(function() {
2929
$('.navbar-toggle:visible').click();
3030
});
3131

32+
// remove the focused state after click, otherwise bootstrap
33+
// bootstrap will still highlight the link
34+
$("a").mouseup(function(){
35+
$(this).blur();
36+
})
37+
3238
// Google Maps Scripts
3339
// When the window has finished loading create our google map below
3440
google.maps.event.addDomListener(window, 'load', init);

0 commit comments

Comments
 (0)