From f3bddbea75022f208ec44cd33360c8a12ed90d66 Mon Sep 17 00:00:00 2001 From: ysCha Date: Fri, 20 Mar 2026 14:41:43 +0900 Subject: [PATCH] =?UTF-8?q?[1766]=EB=B0=A9=EC=9C=84=20=EB=B3=80=EA=B2=BD?= =?UTF-8?q?=20=EC=B2=B4=ED=81=AC=EB=B0=95=EC=8A=A4=EB=A5=BC=20=EB=84=A3?= =?UTF-8?q?=EC=97=88=EC=9D=84=20=EB=95=8C=20=EA=B2=AC=EC=A0=81=EC=84=9C=20?= =?UTF-8?q?=ED=91=9C=EA=B8=B0=20=EB=B0=A9=EB=B2=95=EC=97=90=20=EB=8C=80?= =?UTF-8?q?=ED=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/floor-plan/modal/basic/step/Orientation.jsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/components/floor-plan/modal/basic/step/Orientation.jsx b/src/components/floor-plan/modal/basic/step/Orientation.jsx index 9fb66caf..46d9b77e 100644 --- a/src/components/floor-plan/modal/basic/step/Orientation.jsx +++ b/src/components/floor-plan/modal/basic/step/Orientation.jsx @@ -454,13 +454,9 @@ export const Orientation = forwardRef((props, ref) => { value={inputCompasDeg} readOnly={!hasAnglePassivity} onChange={(value) => { - // Convert to number and ensure it's within -180 to 180 range const numValue = parseInt(value, 10); if (!isNaN(numValue)) { - const clampedValue = Math.min(180, Math.max(-180, numValue)); - setInputCompasDeg(String(clampedValue)); - } else { - setInputCompasDeg(value); + setInputCompasDeg(Math.min(180, Math.max(-180, numValue))); } }} disableKeypad={disableKeypad}