Browse Source

Fix incorrect highlighting in uncontrolled components example (#2873)

main
Charlie Stras 5 years ago
committed by GitHub
parent
commit
6ff9c4bd06
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      examples/uncontrolled-components/input-type-file.js

2
examples/uncontrolled-components/input-type-file.js

@ -6,7 +6,7 @@ class FileInput extends React.Component {
this.fileInput = React.createRef();
}
handleSubmit(event) {
// highlight-range{4}
// highlight-range{3}
event.preventDefault();
alert(
`Selected file - ${this.fileInput.current.files[0].name}`

Loading…
Cancel
Save