From b4892dece1f7bd874b9f986881240374424e3d7a Mon Sep 17 00:00:00 2001 From: Jason Miller Date: Fri, 8 Sep 2017 18:36:53 -0400 Subject: [PATCH] Skip prop-passing if route is a DOM element (fixes #226) --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 4ad59f99..204a37a2 100644 --- a/src/index.js +++ b/src/index.js @@ -214,7 +214,7 @@ class Router extends Component { path = attrs.path, matches = exec(url, path, attrs); if (matches) { - if (invoke!==false) { + if (invoke!==false && typeof vnode.nodeName==='function') { let newProps = { url, matches }; assign(newProps, matches); delete newProps.ref;