mirror of
https://github.com/home-assistant/frontend.git
synced 2025-05-04 01:58:42 +00:00
Fix mwc-select in lovelace editors (#11708)
This commit is contained in:
parent
b55c7edd70
commit
f923228078
@ -28,7 +28,7 @@ export class HuiThemeSelectEditor extends LitElement {
|
|||||||
@selected=${this._changed}
|
@selected=${this._changed}
|
||||||
@closed=${stopPropagation}
|
@closed=${stopPropagation}
|
||||||
fixedMenuPosition
|
fixedMenuPosition
|
||||||
naturalMenuWidt
|
naturalMenuWidth
|
||||||
>
|
>
|
||||||
<mwc-list-item value="remove"
|
<mwc-list-item value="remove"
|
||||||
>${this.hass!.localize(
|
>${this.hass!.localize(
|
||||||
|
@ -91,6 +91,8 @@ export class HuiCalendarCardEditor
|
|||||||
.configValue=${"initial_view"}
|
.configValue=${"initial_view"}
|
||||||
@selected=${this._viewChanged}
|
@selected=${this._viewChanged}
|
||||||
@closed=${stopPropagation}
|
@closed=${stopPropagation}
|
||||||
|
naturalMenuWidth
|
||||||
|
fixedMenuPosition
|
||||||
>
|
>
|
||||||
${views.map(
|
${views.map(
|
||||||
(view) => html`
|
(view) => html`
|
||||||
|
@ -160,6 +160,8 @@ export class HuiConditionalCardEditor
|
|||||||
.configValue=${"invert"}
|
.configValue=${"invert"}
|
||||||
@selected=${this._changeCondition}
|
@selected=${this._changeCondition}
|
||||||
@closed=${stopPropagation}
|
@closed=${stopPropagation}
|
||||||
|
naturalMenuWidth
|
||||||
|
fixedMenuPosition
|
||||||
>
|
>
|
||||||
<mwc-list-item value="false">
|
<mwc-list-item value="false">
|
||||||
${this.hass!.localize(
|
${this.hass!.localize(
|
||||||
|
@ -5,6 +5,7 @@ import { CSSResultGroup, html, LitElement, TemplateResult } from "lit";
|
|||||||
import { customElement, property, state } from "lit/decorators";
|
import { customElement, property, state } from "lit/decorators";
|
||||||
import { assert } from "superstruct";
|
import { assert } from "superstruct";
|
||||||
import { fireEvent } from "../../../../common/dom/fire_event";
|
import { fireEvent } from "../../../../common/dom/fire_event";
|
||||||
|
import { stopPropagation } from "../../../../common/dom/stop_propagation";
|
||||||
import { computeDomain } from "../../../../common/entity/compute_domain";
|
import { computeDomain } from "../../../../common/entity/compute_domain";
|
||||||
import { domainIcon } from "../../../../common/entity/domain_icon";
|
import { domainIcon } from "../../../../common/entity/domain_icon";
|
||||||
import "../../../../components/ha-formfield";
|
import "../../../../components/ha-formfield";
|
||||||
@ -103,9 +104,12 @@ export class HuiGenericEntityRowEditor
|
|||||||
</div>
|
</div>
|
||||||
<mwc-select
|
<mwc-select
|
||||||
label="Secondary Info"
|
label="Secondary Info"
|
||||||
.selected=${this._config.secondary_info || "none"}
|
|
||||||
.configValue=${"secondary_info"}
|
.configValue=${"secondary_info"}
|
||||||
@selected=${this._valueChanged}
|
@selected=${this._valueChanged}
|
||||||
|
@closed=${stopPropagation}
|
||||||
|
.value=${this._config.secondary_info || "none"}
|
||||||
|
naturalMenuWidth
|
||||||
|
fixedMenuPosition
|
||||||
>
|
>
|
||||||
<mwc-list-item value=""
|
<mwc-list-item value=""
|
||||||
>${this.hass!.localize(
|
>${this.hass!.localize(
|
||||||
|
@ -335,6 +335,7 @@ export abstract class HuiElementEditor<T> extends LitElement {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
this._guiSupported = false;
|
||||||
this.GUImode = false;
|
this.GUImode = false;
|
||||||
}
|
}
|
||||||
} catch (err: any) {
|
} catch (err: any) {
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
import "@material/mwc-list/mwc-list-item";
|
import "@material/mwc-list/mwc-list-item";
|
||||||
import "@material/mwc-select/mwc-select";
|
|
||||||
import {
|
import {
|
||||||
css,
|
css,
|
||||||
CSSResultGroup,
|
CSSResultGroup,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user