mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 11:46:42 +00:00
fix weblinks opening two windows when clicking the text link (#389)
This commit is contained in:
parent
688a984bac
commit
9426cfd5ca
@ -49,10 +49,7 @@ Polymer({
|
|||||||
|
|
||||||
onTap: function (ev) {
|
onTap: function (ev) {
|
||||||
ev.stopPropagation();
|
ev.stopPropagation();
|
||||||
if (ev.target === this.$.link) {
|
ev.preventDefault();
|
||||||
// Only open window if we clicked on card but not the link
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
window.open(this.stateObj.state, '_blank');
|
window.open(this.stateObj.state, '_blank');
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user