tabLayout 1Depth 패널이동 수정
This commit is contained in:
@@ -57,9 +57,7 @@ const TabItemBase = ({
|
||||
const onKeyDown = useCallback(
|
||||
(event) => {
|
||||
if (event.key === "ArrowRight") {
|
||||
if (!showSubTab) {
|
||||
_onClick();
|
||||
}
|
||||
_onClick();
|
||||
}
|
||||
},
|
||||
[deActivateTab]
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user