From d4aa611b65a1a2ac9f74c6b595e1fe61d185fb7e Mon Sep 17 00:00:00 2001 From: "hyojun.choi" Date: Mon, 20 Jan 2025 16:37:31 +0900 Subject: [PATCH] =?UTF-8?q?input=200=EC=9D=BC=20=EA=B2=BD=EC=9A=B0?= =?UTF-8?q?=EC=97=90=EB=A7=8C=20=EB=B9=84=EC=9B=8C=EC=A3=BC=EA=B8=B0=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/floor-plan/modal/lineTypes/OuterLineWall.jsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/floor-plan/modal/lineTypes/OuterLineWall.jsx b/src/components/floor-plan/modal/lineTypes/OuterLineWall.jsx index 439e0748..b54d9bf4 100644 --- a/src/components/floor-plan/modal/lineTypes/OuterLineWall.jsx +++ b/src/components/floor-plan/modal/lineTypes/OuterLineWall.jsx @@ -18,7 +18,11 @@ export default function OuterLineWall({ props }) { className="input-origin block" value={length1} ref={length1Ref} - onFocus={(e) => (length1Ref.current.value = '')} + onFocus={(e) => { + if (length1Ref.current.value === '0') { + length1Ref.current.value = '' + } + }} onChange={(e) => onlyNumberInputChange(e, setLength1)} placeholder="3000" />