From bd8e2bd5c063421bbf2fa3b25399689ca477d11c Mon Sep 17 00:00:00 2001 From: azogue Date: Sun, 13 Aug 2017 20:32:29 +0200 Subject: [PATCH] fix weblinks opening two windows when clicking the text link --- 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 64a39a42957c..386f388ba89d 100644 --- a/src/state-summary/state-card-weblink.html +++ b/src/state-summary/state-card-weblink.html @@ -49,10 +49,7 @@ 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'); }, });