value, defaultValue 동시 존재 안됨 => defaultValue 삭제

This commit is contained in:
ysCha 2025-09-02 17:28:37 +09:00
parent 662b38aac7
commit 6dd66ee27d

View File

@ -86,7 +86,7 @@ export default function RoofAllocationSetting(props) {
return (
<div className="grid-option-box" key={index}>
<div className="d-check-radio pop no-text">
<input type="radio" name="radio01" checked={roof.selected && 'checked'} readOnly={true} />
<input type="radio" name="radio01" checked={roof.selected} readOnly />
<label
htmlFor="ra01"
onClick={(e) => {
@ -213,7 +213,6 @@ export default function RoofAllocationSetting(props) {
handleChangePitch(e, index)
}}
value={currentAngleType === 'slope' ? roof.pitch : roof.angle}
defaultValue={currentAngleType === 'slope' ? roof.pitch : roof.angle}
/>
</div>
<span className="absol">{pitchText}</span>