From 562bc79beb6719eed3f5bfbe6510298ea53b968e Mon Sep 17 00:00:00 2001 From: ysCha Date: Tue, 2 Jun 2026 16:52:42 +0900 Subject: [PATCH] =?UTF-8?q?[=EB=B0=B0=EC=B9=98=EB=A9=B4=EC=B4=88=EA=B8=B0?= =?UTF-8?q?=EC=84=A4=EC=A0=95]=20=EC=A0=80=EC=9E=A5=EA=B0=92=20=EC=9A=B0?= =?UTF-8?q?=EC=84=A0=20=EB=B0=98=EC=98=81=20=E2=80=94=20basicSetting=20?= =?UTF-8?q?=EB=8D=AE=EC=96=B4=EC=93=B0=EA=B8=B0=20=EC=A0=9C=EA=B1=B0=20+?= =?UTF-8?q?=20inputMode=20=EB=8F=99=EA=B8=B0=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modal/placementShape/PlacementShapeSetting.jsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/floor-plan/modal/placementShape/PlacementShapeSetting.jsx b/src/components/floor-plan/modal/placementShape/PlacementShapeSetting.jsx index 8c442b22..58ffcea5 100644 --- a/src/components/floor-plan/modal/placementShape/PlacementShapeSetting.jsx +++ b/src/components/floor-plan/modal/placementShape/PlacementShapeSetting.jsx @@ -261,15 +261,19 @@ export default function PlacementShapeSetting({ id, pos = { x: 50, y: 180 }, pla if (addedRoofs.length > 0) { const raftCodeList = findCommonCode('203800') setRaftCodes(raftCodeList) + // [2026-06-02] addedRoofs[0]에서 받은 roofSizeSet을 그대로 사용 (basicSetting으로 덮어씌우지 않기) setCurrentRoof({ ...addedRoofs[0], planNo: currentCanvasPlan?.planNo || planNo, - roofSizeSet: String(basicSetting.roofSizeSet), - roofAngleSet: basicSetting.roofAngleSet, + roofSizeSet: String(addedRoofs[0].roofSizeSet), + roofAngleSet: addedRoofs[0].roofAngleSet, }) + // 입력모드도 함께 동기화 + setInputMode(addedRoofs[0].roofSizeSet) } else { /** 데이터 설정 확인 후 데이터가 없으면 기본 데이터 설정 */ setCurrentRoof({ ...DEFAULT_ROOF_SETTINGS }) + setInputMode(DEFAULT_ROOF_SETTINGS.roofSizeSet) } }, [addedRoofs])