From 167489a96d5d42d56368f0969c81dbc7bf5967bd Mon Sep 17 00:00:00 2001
From: joonhoekim <26rote@gmail.com>
Date: Fri, 28 Nov 2025 14:14:11 +0900
Subject: (김준회) 메뉴 네비게이션: 요구사항 반영(박진석 프로)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 components/layout/Header.tsx | 6 ++++++
 1 file changed, 6 insertions(+)

(limited to 'components/layout/Header.tsx')

diff --git a/components/layout/Header.tsx b/components/layout/Header.tsx
index b70749c7..0c83e858 100644
--- a/components/layout/Header.tsx
+++ b/components/layout/Header.tsx
@@ -237,6 +237,7 @@ export function Header() {
                             <NavigationMenu 
                                 className="relative z-50" 
                                 value={openMenuKey}
+                                onValueChange={setOpenMenuKey}
                             >
                                 <div className="w-full overflow-x-auto pb-1">
                                     <NavigationMenuList className="flex-nowrap w-max">
@@ -251,6 +252,7 @@ export function Header() {
                                                     }}
                                                     onPointerEnter={(e) => e.preventDefault()}
                                                     onPointerMove={(e) => e.preventDefault()}
+                                                    onPointerLeave={(e) => e.preventDefault()}
                                                 >
                                                     {t(section.titleKey)}
                                                 </NavigationMenuTrigger>
@@ -268,6 +270,7 @@ export function Header() {
                                                             lng={lng}
                                                             activeMenus={activeMenus}
                                                             t={t}
+                                                            onItemClick={() => setOpenMenuKey("")}
                                                         />
                                                     </NavigationMenuContent>
                                                 ) : (
@@ -283,6 +286,7 @@ export function Header() {
                                                                     key={item.titleKey}
                                                                     title={t(item.titleKey)}
                                                                     href={`/${lng}${item.href}`}
+                                                                    onClick={() => setOpenMenuKey("")}
                                                                 >
                                                                     {item.descriptionKey && t(item.descriptionKey)}
                                                                 </ListItem>
@@ -302,6 +306,8 @@ export function Header() {
                                                             navigationMenuTriggerStyle(), 
                                                             "px-2 xl:px-3 text-sm whitespace-nowrap"
                                                         )}
+                                                        onPointerEnter={(e) => e.preventDefault()}
+                                                        onPointerLeave={(e) => e.preventDefault()}
                                                     >
                                                         {t(item.titleKey)}
                                                     </NavigationMenuLink>
-- 
cgit v1.2.3

