From 70cb50e44647616fcd3e51c01546d96e389f86af Mon Sep 17 00:00:00 2001 From: kjs Date: Thu, 12 Feb 2026 14:18:46 +0900 Subject: [PATCH] feat: Update SplitPanelLayoutComponent to manage custom left selected data - Initialized custom left selected data to an empty object when deselecting an item, ensuring a clean state for the right form. - Passed the selected item to the custom left selected data when an item is selected, improving data handling in custom mode. - Enhanced overall data management within the SplitPanelLayoutComponent for better user experience. --- .../v2-split-panel-layout/SplitPanelLayoutComponent.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/lib/registry/components/v2-split-panel-layout/SplitPanelLayoutComponent.tsx b/frontend/lib/registry/components/v2-split-panel-layout/SplitPanelLayoutComponent.tsx index e21977f9..210abe18 100644 --- a/frontend/lib/registry/components/v2-split-panel-layout/SplitPanelLayoutComponent.tsx +++ b/frontend/lib/registry/components/v2-split-panel-layout/SplitPanelLayoutComponent.tsx @@ -1564,6 +1564,7 @@ export const SplitPanelLayoutComponent: React.FC if (isSameItem) { // 선택 해제 → 전체 데이터 로드 setSelectedLeftItem(null); + setCustomLeftSelectedData({}); // 커스텀 모드 우측 폼 데이터 초기화 setExpandedRightItems(new Set()); setTabsData({}); if (activeTabIndex === 0) { @@ -1584,6 +1585,7 @@ export const SplitPanelLayoutComponent: React.FC } setSelectedLeftItem(item); + setCustomLeftSelectedData(item); // 커스텀 모드 우측 폼에 선택된 데이터 전달 setExpandedRightItems(new Set()); // 좌측 항목 변경 시 우측 확장 초기화 setTabsData({}); // 모든 탭 데이터 초기화