mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +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) {
|
||||
ev.preventDefault();
|
||||
this.value = null;
|
||||
this._input!.value = "";
|
||||
fireEvent(this, "change");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user