mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-21 22:41:07 +02:00
Add change event type
This commit is contained in:
parent
809454e66a
commit
4b66082b0f
@ -136,7 +136,7 @@ class UploadButton extends React.Component<IUploadButtonProps> {
|
|||||||
this.uploadInput.current.click();
|
this.uploadInput.current.click();
|
||||||
}
|
}
|
||||||
|
|
||||||
private onUploadFileInputChange = (ev) => {
|
private onUploadFileInputChange = (ev: React.ChangeEvent<HTMLInputElement>) => {
|
||||||
if (ev.target.files.length === 0) return;
|
if (ev.target.files.length === 0) return;
|
||||||
|
|
||||||
// take a copy so we can safely reset the value of the form control
|
// take a copy so we can safely reset the value of the form control
|
||||||
|
Loading…
x
Reference in New Issue
Block a user