Fix incorrect highlighting in uncontrolled components example (#2873)

This commit is contained in:
Charlie Stras
2020-04-01 02:14:31 +08:00
committed by GitHub
parent fae6d6b2eb
commit 6ff9c4bd06

View File

@@ -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}`