Skip to content

Commit e2c2fe2

Browse files
authored
Sync Reservation Component with CodePen example (#3221)
1 parent c64ee93 commit e2c2fe2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/docs/forms.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ class Reservation extends React.Component {
214214
215215
handleInputChange(event) {
216216
const target = event.target;
217-
const value = target.name === 'isGoing' ? target.checked : target.value;
217+
const value = target.type === 'checkbox' ? target.checked : target.value;
218218
const name = target.name;
219219
220220
this.setState({

0 commit comments

Comments
 (0)