실측값입력

This commit is contained in:
ysCha 2025-11-27 10:33:47 +09:00
parent 924ec70402
commit 9c2619b99e

View File

@ -31,15 +31,15 @@ export default function Diagonal({ props }) {
{getMessage('modal.cover.outline.length')}
</span>
<div className="input-grid" style={{ width: '63px' }}>
<input
type="text"
className="input-origin block"
value={outerLineDiagonalLength}
ref={outerLineDiagonalLengthRef}
onFocus={(e) => (outerLineDiagonalLengthRef.current.value = '')}
onChange={(e) => setOuterLineDiagonalLength(normalizeDigits(e.target.value))}
placeholder="3000"
/>
{/*<input*/}
{/* type="text"*/}
{/* className="input-origin block"*/}
{/* value={outerLineDiagonalLength}*/}
{/* ref={outerLineDiagonalLengthRef}*/}
{/* onFocus={(e) => (outerLineDiagonalLengthRef.current.value = '')}*/}
{/* onChange={(e) => setOuterLineDiagonalLength(normalizeDigits(e.target.value))}*/}
{/* placeholder="3000"*/}
{/*/>*/}
<CalculatorInput
id=""
name=""
@ -49,7 +49,7 @@ export default function Diagonal({ props }) {
ref={outerLineDiagonalLengthRef}
onChange={(value) => setOuterLineDiagonalLength(value)}
placeholder="3000"
// onFocus={(value) => (outerLineDiagonalLengthRef.current.value = '')}
onFocus={() => (outerLineDiagonalLengthRef.current.value = '')}
options={{
allowNegative: false,
allowDecimal: false
@ -86,7 +86,7 @@ export default function Diagonal({ props }) {
ref={length1Ref}
onChange={(value) => setLength1(value)}
placeholder="3000"
// onFocus={(value) => (length1Ref.current.value = '')}
onFocus={() => (length1Ref.current.value = '')}
options={{
allowNegative: false,
allowDecimal: false