From 9426cfd5caca910218a712893569235204424ec7 Mon Sep 17 00:00:00 2001 From: Eugenio Panadero Date: Sun, 13 Aug 2017 20:46:04 +0200 Subject: [PATCH] fix weblinks opening two windows when clicking the text link (#389) --- src/state-summary/state-card-weblink.html | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/state-summary/state-card-weblink.html b/src/state-summary/state-card-weblink.html index 64a39a4295..386f388ba8 100644 --- a/src/state-summary/state-card-weblink.html +++ b/src/state-summary/state-card-weblink.html @@ -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'); }, });