mirror of
https://github.com/home-assistant/frontend.git
synced 2025-12-20 02:38:53 +00:00
Fix more info dialog closing after toggling entity
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user