Skip to content

Commit fb6d1a5

Browse files
committed
activeRoute actually needs to support multiple children.
Much thanks to @luigy and @rpflorence.
1 parent 2d0fb47 commit fb6d1a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/components/Route.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ function computeHandlerProps(matches, query) {
447447
}
448448

449449
childHandler = function (props, addedProps, children) {
450-
return route.props.handler(mergeProperties(props, addedProps), children);
450+
return route.props.handler.apply(null, [mergeProperties(props, addedProps)].concat(children));
451451
}.bind(this, props);
452452

453453
match.refName = props.ref;

0 commit comments

Comments
 (0)