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