mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-07 17:36:35 +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) {
|
||||
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();
|
||||
},
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user