실측값입력

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