mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 22:37:11 +00:00
Frontend: Workaround for tap bug in paper-dialog
This commit is contained in:
parent
6c1a309c40
commit
ca373b5aa5
@ -1,2 +1,2 @@
|
|||||||
""" DO NOT MODIFY. Auto-generated by build_frontend script """
|
""" DO NOT MODIFY. Auto-generated by build_frontend script """
|
||||||
VERSION = "e53215fa1416dbbc7819452b4f38689c"
|
VERSION = "1cc966bcef26a859d053bd5c46769a99"
|
||||||
|
@ -22375,15 +22375,13 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||||||
},
|
},
|
||||||
|
|
||||||
listeners: {
|
listeners: {
|
||||||
'tap': 'cardTapped',
|
// listening for click instead of tap as a work around
|
||||||
|
// https://github.com/PolymerElements/iron-overlay-behavior/issues/14
|
||||||
|
'click': 'cardTapped',
|
||||||
},
|
},
|
||||||
|
|
||||||
cardTapped: function() {
|
cardTapped: function() {
|
||||||
// Debounce wrapper added as workaround for bug
|
|
||||||
// https://github.com/PolymerElements/iron-overlay-behavior/issues/14
|
|
||||||
this.debounce('show-more-info-dialog', function() {
|
|
||||||
uiActions.showMoreInfoDialog(this.stateObj.entityId);
|
uiActions.showMoreInfoDialog(this.stateObj.entityId);
|
||||||
}, 1);
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
})();
|
})();
|
||||||
|
@ -37,15 +37,13 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
listeners: {
|
listeners: {
|
||||||
'tap': 'cardTapped',
|
// listening for click instead of tap as a work around
|
||||||
|
// https://github.com/PolymerElements/iron-overlay-behavior/issues/14
|
||||||
|
'click': 'cardTapped',
|
||||||
},
|
},
|
||||||
|
|
||||||
cardTapped: function() {
|
cardTapped: function() {
|
||||||
// Debounce wrapper added as workaround for bug
|
|
||||||
// https://github.com/PolymerElements/iron-overlay-behavior/issues/14
|
|
||||||
this.debounce('show-more-info-dialog', function() {
|
|
||||||
uiActions.showMoreInfoDialog(this.stateObj.entityId);
|
uiActions.showMoreInfoDialog(this.stateObj.entityId);
|
||||||
}, 1);
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
})();
|
})();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user