Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

Commit 7fdd97d

Browse files
committed
Bugfix: radio buttons of recommendation form were unclickable
1 parent 96435d5 commit 7fdd97d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

blade/front/src/components/parts/RecommendationAttributeForm/RecommendationAttributeForm.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,11 @@ class RecommendationAttributeForm extends Component {
127127
</Col>
128128
<Col md={12}>
129129
<div className="form-check form-check-inline">
130-
<input className="form-check-input" type="radio" name={ attribute.key } id={ attribute.key } value="1" checked={ this.state.requirements.value === 1 } onChange={ this.handleChangeValue.bind(this) }/>
130+
<input className="form-check-input" type="radio" name={ attribute.key } id={ attribute.key } value="1" checked={ parseInt(this.state.requirements.value) === 1 } onChange={ this.handleChangeValue.bind(this) }/>
131131
<label className="form-check-label" htmlFor={ attribute.key }>Yes</label>
132132
</div>
133133
<div className="form-check form-check-inline">
134-
<input className="form-check-input" type="radio" name={ attribute.key } id={ attribute.key } value="0" checked={ this.state.requirements.value === 0 } onChange={ this.handleChangeValue.bind(this) }/>
134+
<input className="form-check-input" type="radio" name={ attribute.key } id={ attribute.key } value="0" checked={ parseInt(this.state.requirements.value) === 0 } onChange={ this.handleChangeValue.bind(this) }/>
135135
<label className="form-check-label" htmlFor={ attribute.key }>No</label>
136136
</div>
137137
</Col>

0 commit comments

Comments
 (0)