mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-08 09:56:36 +00:00
Don't propagate event from cover controls. (#248)
This commit is contained in:
parent
16f0775af5
commit
91049e8ed6
@ -45,13 +45,16 @@ Polymer({
|
|||||||
computeEntityObj: function (hass, stateObj) {
|
computeEntityObj: function (hass, stateObj) {
|
||||||
return new window.CoverEntity(hass, stateObj);
|
return new window.CoverEntity(hass, stateObj);
|
||||||
},
|
},
|
||||||
onOpenTap: function () {
|
onOpenTap: function (ev) {
|
||||||
|
ev.stopPropagation();
|
||||||
this.entityObj.openCover();
|
this.entityObj.openCover();
|
||||||
},
|
},
|
||||||
onCloseTap: function () {
|
onCloseTap: function (ev) {
|
||||||
|
ev.stopPropagation();
|
||||||
this.entityObj.closeCover();
|
this.entityObj.closeCover();
|
||||||
},
|
},
|
||||||
onStopTap: function () {
|
onStopTap: function (ev) {
|
||||||
|
ev.stopPropagation();
|
||||||
this.entityObj.stopCover();
|
this.entityObj.stopCover();
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user