From 3d38ca47244e572b6b98e96c5a04c1377844f9d5 Mon Sep 17 00:00:00 2001 From: Dan Date: Sat, 23 Jun 2018 01:42:05 +0100 Subject: [PATCH] Fix CI --- .../uncontrolled-components/input-type-file.js | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/examples/uncontrolled-components/input-type-file.js b/examples/uncontrolled-components/input-type-file.js index 0b2a7dec..75e055d0 100644 --- a/examples/uncontrolled-components/input-type-file.js +++ b/examples/uncontrolled-components/input-type-file.js @@ -1,28 +1,27 @@ class FileInput extends React.Component { - // highlight-range{4} constructor(props) { + // highlight-range{3} super(props); this.handleSubmit = this.handleSubmit.bind(this); this.fileInput = React.createRef(); } - // highlight-range{4} handleSubmit(event) { + // highlight-range{4} event.preventDefault(); alert( - `Selected file - ${this.fileInput.current.files[0].name}` + `Selected file - ${ + this.fileInput.current.files[0].name + }` ); } render() { + // highlight-range{5} return (