Only show "required" indicator if we have a selector label (#12241)

This commit is contained in:
Philip Allgaier
2022-04-07 00:11:12 +02:00
committed by GitHub
parent bbca7b762b
commit cfa048ea4e
5 changed files with 7 additions and 5 deletions

View File

@@ -53,7 +53,7 @@ class HaLabeledSlider extends PolymerElement {
}
_getTitle() {
return `${this.caption}${this.required ? "*" : ""}`;
return `${this.caption}${this.caption && this.required ? " *" : ""}`;
}
static get properties() {