Skip to content

Commit 5115866

Browse files
committed
Fixed activeRoute only passing a single child through.
1 parent fb6d1a5 commit 5115866

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/components/Route.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,8 @@ function computeHandlerProps(matches, query) {
446446
props.activeRoute = null;
447447
}
448448

449-
childHandler = function (props, addedProps, children) {
449+
childHandler = function (props, addedProps) {
450+
var children = Array.prototype.slice.call(arguments, 2);
450451
return route.props.handler.apply(null, [mergeProperties(props, addedProps)].concat(children));
451452
}.bind(this, props);
452453

0 commit comments

Comments
 (0)