From 4b784a0072edcc437f53117babe1bd7fd1cc51f6 Mon Sep 17 00:00:00 2001 From: Supasak Sutha Date: Tue, 31 Oct 2017 14:02:14 +0700 Subject: [PATCH] FIX: Year navigation cause form submit if component placed in side form. --- src/app.jsx | 34 ++++++++++++++++++---------------- src/year.jsx | 2 ++ 2 files changed, 20 insertions(+), 16 deletions(-) diff --git a/src/app.jsx b/src/app.jsx index 2c71e2b..235ca43 100644 --- a/src/app.jsx +++ b/src/app.jsx @@ -64,22 +64,24 @@ class App extends React.Component { } render() { return ( -
- - -
+
alert('Submitted')}> +
+ + +
+
); } } diff --git a/src/year.jsx b/src/year.jsx index 94fcb9c..65381b1 100644 --- a/src/year.jsx +++ b/src/year.jsx @@ -99,6 +99,7 @@ class YearBase extends React.Component { @@ -106,6 +107,7 @@ class YearBase extends React.Component {