From 6ff9c4bd06b4a10d7603582519449231a61fdec2 Mon Sep 17 00:00:00 2001 From: Charlie Stras Date: Wed, 1 Apr 2020 02:14:31 +0800 Subject: [PATCH] Fix incorrect highlighting in uncontrolled components example (#2873) --- examples/uncontrolled-components/input-type-file.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/uncontrolled-components/input-type-file.js b/examples/uncontrolled-components/input-type-file.js index d38bd9ea5..742d6dcd5 100644 --- a/examples/uncontrolled-components/input-type-file.js +++ b/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}`