Browse Source
Handling Multiple Inputs (#2260)
Text says to use "__name__" but code shows usage of "__type__".
main
Rajinder Yadav
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
content/docs/forms.md
|
|
@ -220,7 +220,7 @@ class Reservation extends React.Component { |
|
|
|
|
|
|
|
handleInputChange(event) { |
|
|
|
const target = event.target; |
|
|
|
const value = target.type === 'checkbox' ? target.checked : target.value; |
|
|
|
const value = target.name === 'isGoing' ? target.checked : target.value; |
|
|
|
const name = target.name; |
|
|
|
|
|
|
|
this.setState({ |
|
|
|