From 63ed19ff64e97067ef43be02030b9c67fb03eeea Mon Sep 17 00:00:00 2001 From: Leonardo Gentile Date: Fri, 16 Jun 2017 17:00:46 +0200 Subject: [PATCH] fix(BaseLink): Return href='#' when onClick passed to BaseLink (before there wasn't an href at all c --- README.md | 6 +++--- src/modules/BaseLink.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 4c499cc..5ca69cc 100644 --- a/README.md +++ b/README.md @@ -545,9 +545,9 @@ function logMeIn(e) { function Menu(props) { return ( ); } diff --git a/src/modules/BaseLink.js b/src/modules/BaseLink.js index e03e75d..8860e50 100644 --- a/src/modules/BaseLink.js +++ b/src/modules/BaseLink.js @@ -60,7 +60,7 @@ class BaseLink extends Component { } return this.router.buildPath(routeName, routeParams); } - return null; + return '#'; } clickHandler(evt) {