mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-17 14:26:35 +00:00
Fix more info dialog closing after toggling entity
This commit is contained in:
parent
85cf2e5ab2
commit
905a3dd26a
@ -106,8 +106,8 @@ export default new Polymer({
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.showHistoryComponent = (
|
this.showHistoryComponent = (
|
||||||
DOMAINS_WITH_NO_HISTORY.indexOf(this.stateObj.domain) === -1 &&
|
this.hasHistoryComponent &&
|
||||||
this.hasHistoryComponent
|
DOMAINS_WITH_NO_HISTORY.indexOf(this.stateObj.domain) === -1
|
||||||
);
|
);
|
||||||
|
|
||||||
this.async(() => {
|
this.async(() => {
|
||||||
|
@ -15,9 +15,7 @@
|
|||||||
|
|
||||||
<paper-toggle-button class='self-center'
|
<paper-toggle-button class='self-center'
|
||||||
checked="[[toggleChecked]]"
|
checked="[[toggleChecked]]"
|
||||||
on-change="toggleChanged"
|
on-change="toggleChanged"></paper-toggle-button>
|
||||||
on-click="toggleTapped">
|
|
||||||
</paper-toggle-button>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
@ -23,10 +23,6 @@ export default new Polymer({
|
|||||||
this.forceStateChange();
|
this.forceStateChange();
|
||||||
},
|
},
|
||||||
|
|
||||||
toggleTapped(ev) {
|
|
||||||
ev.stopPropagation();
|
|
||||||
},
|
|
||||||
|
|
||||||
toggleChanged(ev) {
|
toggleChanged(ev) {
|
||||||
const newVal = ev.target.checked;
|
const newVal = ev.target.checked;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user