Stop closed event when selecting datadisk (#12749)

This commit is contained in:
Joakim Sørensen 2022-05-23 12:58:36 +02:00 committed by GitHub
parent 8ac4a6d900
commit 51c5ab33f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,6 +3,7 @@ import { css, CSSResultGroup, html, LitElement, TemplateResult } from "lit";
import { customElement, property, state } from "lit/decorators";
import memoizeOne from "memoize-one";
import { fireEvent } from "../../../common/dom/fire_event";
import { stopPropagation } from "../../../common/dom/stop_propagation";
import "../../../components/ha-circular-progress";
import "../../../components/ha-markdown";
import "../../../components/ha-select";
@ -113,6 +114,7 @@ class MoveDatadiskDialog extends LitElement {
"ui.panel.config.storage.datadisk.select_device"
)}
@selected=${this._select_device}
@closed=${stopPropagation}
dialogInitialFocus
>
${this._devices.map(