Add event parameter to handleBlur function
This commit is contained in:
parent
2299d5bc94
commit
a92621bbfc
|
@ -119,7 +119,7 @@
|
|||
}
|
||||
});
|
||||
|
||||
const handleBlur = () => {
|
||||
const handleBlur = (event) => {
|
||||
const navList = event.currentTarget.closest(".navbar__links");
|
||||
if (!event.relatedTarget || !navList.contains(event.relatedTarget)) {
|
||||
closeNavigation();
|
||||
|
|
Loading…
Reference in New Issue