숫자입력 ''=> 0 으로 처리
This commit is contained in:
parent
e285210927
commit
bab3039d6e
@ -186,7 +186,7 @@ export default function ContextRoofAllocationSetting(props) {
|
|||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
className="input-origin block"
|
className="input-origin block"
|
||||||
value={parseInt(roof.hajebichi)}
|
value={roof.hajebichi === '' ? '0' : roof.hajebichi}
|
||||||
readOnly={roof.roofPchAuth === 'R'}
|
readOnly={roof.roofPchAuth === 'R'}
|
||||||
onChange={(e) => handleChangeInput(e, 'hajebichi', index)}
|
onChange={(e) => handleChangeInput(e, 'hajebichi', index)}
|
||||||
/>
|
/>
|
||||||
@ -205,8 +205,8 @@ export default function ContextRoofAllocationSetting(props) {
|
|||||||
// handleChangeInput(e, currentAngleType === 'slope' ? 'pitch' : 'angle', index)
|
// handleChangeInput(e, currentAngleType === 'slope' ? 'pitch' : 'angle', index)
|
||||||
handleChangePitch(e, index)
|
handleChangePitch(e, index)
|
||||||
}}
|
}}
|
||||||
value={currentAngleType === 'slope' ? roof.pitch : roof.angle}
|
value={currentAngleType === 'slope' ? (roof.pitch || '0') : (roof.angle || '0')}
|
||||||
defaultValue={currentAngleType === 'slope' ? roof.pitch : roof.angle}
|
defaultValue={currentAngleType === 'slope' ? (roof.pitch || '0') : (roof.angle || '0')}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<span className="absol">{pitchText}</span>
|
<span className="absol">{pitchText}</span>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user