Clear input element value of ha-file-upload (#17663)

This commit is contained in:
Matthias Alphart 2023-08-22 17:21:06 +02:00 committed by GitHub
parent bbb6fccaec
commit f773c968f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -146,6 +146,7 @@ export class HaFileUpload extends LitElement {
private _clearValue(ev: Event) {
ev.preventDefault();
this.value = null;
this._input!.value = "";
fireEvent(this, "change");
}