fix weblinks opening two windows when clicking the text link (#389)

This commit is contained in:
Eugenio Panadero 2017-08-13 20:46:04 +02:00 committed by Paulus Schoutsen
parent 688a984bac
commit 9426cfd5ca

View File

@ -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');
}, },
}); });