From 2423357793d887c025db69677abef1be9e095140 Mon Sep 17 00:00:00 2001 From: Lovro Hrust <33687174+Lovor01@users.noreply.github.com> Date: Thu, 17 Feb 2022 00:23:20 +0100 Subject: [PATCH] Fixing bug Event parameter was omitted from event function parameter. --- js/navigation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/navigation.js b/js/navigation.js index a485fd1057..5f5edaa5db 100644 --- a/js/navigation.js +++ b/js/navigation.js @@ -72,7 +72,7 @@ /** * Sets or removes .focus class on an element. */ - function toggleFocus() { + function toggleFocus(event) { if ( event.type === 'focus' || event.type === 'blur' ) { let self = this; // Move up through the ancestors of the current link until we hit .nav-menu.