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

View File

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

View File

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