mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 03:36:44 +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) {
|
||||
ev.stopPropagation();
|
||||
if (ev.target === this.$.link) {
|
||||
// Only open window if we clicked on card but not the link
|
||||
return;
|
||||
}
|
||||
ev.preventDefault();
|
||||
window.open(this.stateObj.state, '_blank');
|
||||
},
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user