From 30c67f59c07a7c362f61a420a63baf7732b414df Mon Sep 17 00:00:00 2001 From: Pavel Dohnal Date: Thu, 19 Sep 2019 11:51:38 +0200 Subject: [PATCH] Prevent default on link to make sure [MAILPOET-2142] --- assets/js/src/wizard/steps/pitch_mss_step.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/js/src/wizard/steps/pitch_mss_step.jsx b/assets/js/src/wizard/steps/pitch_mss_step.jsx index 4ac2380a02..f8ffa84981 100644 --- a/assets/js/src/wizard/steps/pitch_mss_step.jsx +++ b/assets/js/src/wizard/steps/pitch_mss_step.jsx @@ -28,7 +28,8 @@ const Controlls = (props) => ( target="_blank" rel="noopener noreferrer" className="button button-primary" - onClick={() => { + onClick={(event) => { + event.preventDefault(); window.open(props.mailpoetAccountUrl); props.next(); }}