diff --git a/src/components/intro/index.tsx b/src/components/intro/index.tsx index 30fec35c..95a4eab8 100644 --- a/src/components/intro/index.tsx +++ b/src/components/intro/index.tsx @@ -53,11 +53,17 @@ export default class Intro extends Component { state: State = {}; private fileInput?: HTMLInputElement; + @bind + private resetFileInput() { + this.fileInput!.value = ""; + } + @bind private onFileChange(event: Event): void { const fileInput = event.target as HTMLInputElement; const file = fileInput.files && fileInput.files[0]; if (!file) return; + this.resetFileInput(); this.props.onFile(file); }