1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-20 02:38:53 +00:00

fix paste in add tca dialog (#28286)

This commit is contained in:
Bram Kragten
2025-12-02 14:30:16 +01:00
committed by GitHub
parent 0f195015b7
commit 87c0b1d887

View File

@@ -555,8 +555,7 @@ class DialogAddAutomationElement
interactive
type="button"
class="paste"
.value=${PASTE_VALUE}
@click=${this._selected}
@click=${this._paste}
>
<div class="shortcut-label">
<div class="label">
@@ -1670,6 +1669,11 @@ class DialogAddAutomationElement
});
}
private _paste() {
this._params!.add(PASTE_VALUE);
this.closeDialog();
}
private _selected(ev: CustomEvent<{ value: string }>) {
let target: HassServiceTarget | undefined;
if (