tabLayout 1Depth 패널이동 수정

This commit is contained in:
고동영
2024-02-20 14:38:32 +09:00
parent 1c9641e787
commit e634b75761
2 changed files with 3 additions and 5 deletions

View File

@@ -57,9 +57,7 @@ const TabItemBase = ({
const onKeyDown = useCallback(
(event) => {
if (event.key === "ArrowRight") {
if (!showSubTab) {
_onClick();
}
_onClick();
}
},
[deActivateTab]

View File

@@ -375,8 +375,8 @@ export default function TabLayout({ topPanelName, onTabActivated }) {
const handleNavigation = useCallback(
({ index, target }) => {
if (target && !showSubTab) {
console.log("#target", target);
if (target) {
setMainSelectedIndex(index);
dispatch(resetPanels(target));
deActivateTab();
panelSwitching.current = true;