Make images smaller using best-in-class codecs, right in the browser.
JavaScript
fix select the same file bug (#538)
A2ZH8f215a5b4bfa
diff --git a/src/components/intro/index.tsx b/src/components/intro/index.tsxindex 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<Props, State> {state: State = {};private fileInput?: HTMLInputElement;+ @bind+ private resetFileInput() {+ this.fileInput!.value = "";+ }+@bindprivate 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);}