input 0일 경우에만 비워주기 추가
This commit is contained in:
parent
ffbfc245b7
commit
d4aa611b65
@ -18,7 +18,11 @@ export default function OuterLineWall({ props }) {
|
|||||||
className="input-origin block"
|
className="input-origin block"
|
||||||
value={length1}
|
value={length1}
|
||||||
ref={length1Ref}
|
ref={length1Ref}
|
||||||
onFocus={(e) => (length1Ref.current.value = '')}
|
onFocus={(e) => {
|
||||||
|
if (length1Ref.current.value === '0') {
|
||||||
|
length1Ref.current.value = ''
|
||||||
|
}
|
||||||
|
}}
|
||||||
onChange={(e) => onlyNumberInputChange(e, setLength1)}
|
onChange={(e) => onlyNumberInputChange(e, setLength1)}
|
||||||
placeholder="3000"
|
placeholder="3000"
|
||||||
/>
|
/>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user