mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Clear input element value of ha-file-upload
(#17663)
This commit is contained in:
parent
bbb6fccaec
commit
f773c968f9
@ -146,6 +146,7 @@ export class HaFileUpload extends LitElement {
|
|||||||
private _clearValue(ev: Event) {
|
private _clearValue(ev: Event) {
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
this.value = null;
|
this.value = null;
|
||||||
|
this._input!.value = "";
|
||||||
fireEvent(this, "change");
|
fireEvent(this, "change");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user