Charlie Stras
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
-
examples/uncontrolled-components/input-type-file.js
|
@ -6,7 +6,7 @@ class FileInput extends React.Component { |
|
|
this.fileInput = React.createRef(); |
|
|
this.fileInput = React.createRef(); |
|
|
} |
|
|
} |
|
|
handleSubmit(event) { |
|
|
handleSubmit(event) { |
|
|
// highlight-range{4}
|
|
|
// highlight-range{3}
|
|
|
event.preventDefault(); |
|
|
event.preventDefault(); |
|
|
alert( |
|
|
alert( |
|
|
`Selected file - ${this.fileInput.current.files[0].name}` |
|
|
`Selected file - ${this.fileInput.current.files[0].name}` |
|
|