mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-15 13:26:34 +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 = (
|
||||
DOMAINS_WITH_NO_HISTORY.indexOf(this.stateObj.domain) === -1 &&
|
||||
this.hasHistoryComponent
|
||||
this.hasHistoryComponent &&
|
||||
DOMAINS_WITH_NO_HISTORY.indexOf(this.stateObj.domain) === -1
|
||||
);
|
||||
|
||||
this.async(() => {
|
||||
|
@ -15,9 +15,7 @@
|
||||
|
||||
<paper-toggle-button class='self-center'
|
||||
checked="[[toggleChecked]]"
|
||||
on-change="toggleChanged"
|
||||
on-click="toggleTapped">
|
||||
</paper-toggle-button>
|
||||
on-change="toggleChanged"></paper-toggle-button>
|
||||
</div>
|
||||
|
||||
</template>
|
||||
|
@ -23,10 +23,6 @@ export default new Polymer({
|
||||
this.forceStateChange();
|
||||
},
|
||||
|
||||
toggleTapped(ev) {
|
||||
ev.stopPropagation();
|
||||
},
|
||||
|
||||
toggleChanged(ev) {
|
||||
const newVal = ev.target.checked;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user