Add event parameter to handleBlur function

This commit is contained in:
Helen Chong 2024-06-08 00:47:33 +08:00
parent 2299d5bc94
commit a92621bbfc
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@
}
});
const handleBlur = () => {
const handleBlur = (event) => {
const navList = event.currentTarget.closest(".navbar__links");
if (!event.relatedTarget || !navList.contains(event.relatedTarget)) {
closeNavigation();