Fix more info dialog closing after toggling entity

This commit is contained in:
Paulus Schoutsen 2015-08-30 14:40:09 -07:00
parent 85cf2e5ab2
commit 905a3dd26a
3 changed files with 3 additions and 9 deletions

View File

@ -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(() => {

View File

@ -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>

View File

@ -23,10 +23,6 @@ export default new Polymer({
this.forceStateChange();
},
toggleTapped(ev) {
ev.stopPropagation();
},
toggleChanged(ev) {
const newVal = ev.target.checked;