Skip to content

Commit

Permalink
Fixed #2026 - options.clear() NOT works in FileUpload
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed May 10, 2021
1 parent 8177746 commit 8c310eb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/fileupload/FileUpload.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,9 @@ export class FileUpload extends Component {
}

clearInputElement() {
this.fileInput.value = '';
if (this.fileInput) {
this.fileInput.value = '';
}
}

clearIEInput() {
Expand Down

0 comments on commit 8c310eb

Please sign in to comment.