mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-14 04:46:34 +00:00
Prevent items in add integration dialog from flickering (#17260)
This commit is contained in:
parent
9f55c06dfc
commit
9866a3217e
@ -443,6 +443,7 @@ class AddIntegrationDialog extends LitElement {
|
|||||||
})}
|
})}
|
||||||
@click=${this._integrationPicked}
|
@click=${this._integrationPicked}
|
||||||
.items=${integrations}
|
.items=${integrations}
|
||||||
|
.keyFunction=${this._keyFunction}
|
||||||
.renderItem=${this._renderRow}
|
.renderItem=${this._renderRow}
|
||||||
>
|
>
|
||||||
</lit-virtualizer>
|
</lit-virtualizer>
|
||||||
@ -450,6 +451,9 @@ class AddIntegrationDialog extends LitElement {
|
|||||||
: html`<ha-circular-progress active></ha-circular-progress>`} `;
|
: html`<ha-circular-progress active></ha-circular-progress>`} `;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private _keyFunction = (integration: IntegrationListItem) =>
|
||||||
|
integration.domain;
|
||||||
|
|
||||||
private _renderRow = (integration: IntegrationListItem) => {
|
private _renderRow = (integration: IntegrationListItem) => {
|
||||||
if (!integration) {
|
if (!integration) {
|
||||||
return nothing;
|
return nothing;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user