[SHOPTIME-3331] SHOPTIME-1933 GNB / 1뎁스는 축소된 상태로 2뎁스만 확장되는 현상 발생
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이 존재하지 않음
This commit is contained in:
@@ -458,6 +458,11 @@ export default function TabLayout({ topPanelName, onTabActivated, panelInfo }) {
|
|||||||
mouseMainEntered.current = false;
|
mouseMainEntered.current = false;
|
||||||
mouseNavOpen.current.stop();
|
mouseNavOpen.current.stop();
|
||||||
|
|
||||||
|
// second depth가 있을 경우 클릭 시 expanded
|
||||||
|
if (!target) {
|
||||||
|
setMainExpanded(true);
|
||||||
|
}
|
||||||
|
|
||||||
//같은패널로 클릭이벤트가 호출될때
|
//같은패널로 클릭이벤트가 호출될때
|
||||||
if (
|
if (
|
||||||
Array.isArray(target) &&
|
Array.isArray(target) &&
|
||||||
|
|||||||
Reference in New Issue
Block a user