mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 09:16:38 +00:00
fix click handlers on data tables (#5087)
This commit is contained in:
parent
720bd03173
commit
e63723f39e
@ -101,9 +101,9 @@ export class ZHADevicesDataTable extends LitElement {
|
||||
}
|
||||
|
||||
private async _handleClicked(ev: CustomEvent) {
|
||||
const ieee = (ev.target as HTMLElement)
|
||||
.closest("tr")!
|
||||
.getAttribute("data-row-id")!;
|
||||
const ieee = ((ev.target as HTMLElement).closest(
|
||||
".mdc-data-table__row"
|
||||
) as any).rowId;
|
||||
showZHADeviceInfoDialog(this, { ieee });
|
||||
}
|
||||
}
|
||||
|
@ -110,9 +110,9 @@ export class ZHAGroupsDataTable extends LitElement {
|
||||
}
|
||||
|
||||
private _handleRowClicked(ev: CustomEvent) {
|
||||
const groupId = (ev.target as HTMLElement)
|
||||
.closest("tr")!
|
||||
.getAttribute("data-row-id")!;
|
||||
const groupId = ((ev.target as HTMLElement).closest(
|
||||
".mdc-data-table__row"
|
||||
) as any).rowId;
|
||||
navigate(this, `/config/zha/group/${groupId}`);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user