mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 20:23:08 +00:00
Fix incorrect highlighting in uncontrolled components example (#2873)
This commit is contained in:
@@ -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}`
|
||||
|
||||
Reference in New Issue
Block a user