Add change event type

pull/21833/head
J. Ryan Stinnett 2021-04-26 15:27:30 +01:00
parent 809454e66a
commit 4b66082b0f
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ class UploadButton extends React.Component<IUploadButtonProps> {
this.uploadInput.current.click();
}
private onUploadFileInputChange = (ev) => {
private onUploadFileInputChange = (ev: React.ChangeEvent<HTMLInputElement>) => {
if (ev.target.files.length === 0) return;
// take a copy so we can safely reset the value of the form control