Don't propagate event from cover controls. (#248)

This commit is contained in:
Andrey 2017-03-29 07:17:03 +03:00 committed by Paulus Schoutsen
parent 16f0775af5
commit 91049e8ed6

View File

@ -45,13 +45,16 @@ Polymer({
computeEntityObj: function (hass, stateObj) {
return new window.CoverEntity(hass, stateObj);
},
onOpenTap: function () {
onOpenTap: function (ev) {
ev.stopPropagation();
this.entityObj.openCover();
},
onCloseTap: function () {
onCloseTap: function (ev) {
ev.stopPropagation();
this.entityObj.closeCover();
},
onStopTap: function () {
onStopTap: function (ev) {
ev.stopPropagation();
this.entityObj.stopCover();
},
});