From 88be88f6d40c82e08af165520baa1d759095e110 Mon Sep 17 00:00:00 2001 From: ayaan Date: Mon, 14 Oct 2024 16:27:13 +0900 Subject: [PATCH] =?UTF-8?q?[SHOPTIME-3331]=20SHOPTIME-1933=20GNB=20/=201?= =?UTF-8?q?=EB=8E=81=EC=8A=A4=EB=8A=94=20=EC=B6=95=EC=86=8C=EB=90=9C=20?= =?UTF-8?q?=EC=83=81=ED=83=9C=EB=A1=9C=202=EB=8E=81=EC=8A=A4=EB=A7=8C=20?= =?UTF-8?q?=ED=99=95=EC=9E=A5=EB=90=98=EB=8A=94=20=ED=98=84=EC=83=81=20?= =?UTF-8?q?=EB=B0=9C=EC=83=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changed files: 1. TabLayout.jsx Detail note: - Cause - click event에서 sub-tab이 있는 main-tab의 경우 expanded 상태 값을 true로 변경해주는 로직의 부재 - Solution - click event에서 sub-tab이 있는 main-tab의 경우 expanded 상태 값을 true로 변경 - sub-tab이 있는 경우 현재 구조 상 target이 존재하지 않음 --- com.twin.app.shoptime/src/components/TabLayout/TabLayout.jsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/com.twin.app.shoptime/src/components/TabLayout/TabLayout.jsx b/com.twin.app.shoptime/src/components/TabLayout/TabLayout.jsx index 5501d543..954d2114 100644 --- a/com.twin.app.shoptime/src/components/TabLayout/TabLayout.jsx +++ b/com.twin.app.shoptime/src/components/TabLayout/TabLayout.jsx @@ -458,6 +458,11 @@ export default function TabLayout({ topPanelName, onTabActivated, panelInfo }) { mouseMainEntered.current = false; mouseNavOpen.current.stop(); + // second depth가 있을 경우 클릭 시 expanded + if (!target) { + setMainExpanded(true); + } + //같은패널로 클릭이벤트가 호출될때 if ( Array.isArray(target) &&