From 51b04b3a26701f6c90b6a51e835329249a80e85b Mon Sep 17 00:00:00 2001 From: Minasokoni Date: Tue, 2 May 2017 10:38:35 -0700 Subject: [PATCH 1/2] preventDefault the form --- src/plugins/topbar/topbar.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/topbar/topbar.jsx b/src/plugins/topbar/topbar.jsx index 73138c6f..9d52b542 100644 --- a/src/plugins/topbar/topbar.jsx +++ b/src/plugins/topbar/topbar.jsx @@ -19,9 +19,10 @@ export default class Topbar extends React.Component { this.setState({url: value}) } - downloadUrl = () => { + downloadUrl = (e) => { this.props.specActions.updateUrl(this.state.url) this.props.specActions.download(this.state.url) + e.preventDefault(); } render() { From 018491b4a7ef0d131fe9db8c6f20df4e63ca274f Mon Sep 17 00:00:00 2001 From: Minasokoni Date: Tue, 2 May 2017 11:02:14 -0700 Subject: [PATCH 2/2] removed semicolon --- src/plugins/topbar/topbar.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/topbar/topbar.jsx b/src/plugins/topbar/topbar.jsx index 9d52b542..df1eb2b8 100644 --- a/src/plugins/topbar/topbar.jsx +++ b/src/plugins/topbar/topbar.jsx @@ -22,7 +22,7 @@ export default class Topbar extends React.Component { downloadUrl = (e) => { this.props.specActions.updateUrl(this.state.url) this.props.specActions.download(this.state.url) - e.preventDefault(); + e.preventDefault() } render() {