From 42ecee42a196d3e336ae6c0ac5c8a15c33ed51cc Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Sun, 8 Oct 2017 08:59:18 +1030 Subject: [PATCH] Make sure components receive all children properly --- js/lib/utils/patchMithril.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/lib/utils/patchMithril.js b/js/lib/utils/patchMithril.js index 672b2e39e..8935b2e79 100644 --- a/js/lib/utils/patchMithril.js +++ b/js/lib/utils/patchMithril.js @@ -5,7 +5,7 @@ export default function patchMithril(global) { const m = function(comp, ...args) { if (comp.prototype && comp.prototype instanceof Component) { - return comp.component(...args); + return comp.component(args[0], args.slice(1)); } const node = mo.apply(this, arguments);