[1766]방위 변경 체크박스를 넣었을 때 견적서 표기 방법에 대해(1)

This commit is contained in:
ysCha 2026-03-20 18:09:50 +09:00
parent 10d9079ca5
commit 56b4ee9563

View File

@ -453,13 +453,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)));
}
}}
options={{