From 1f4966bbf10895cac7bac66582db4c2e4eb80e4e 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 --- framework/core/js/lib/utils/patchMithril.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/core/js/lib/utils/patchMithril.js b/framework/core/js/lib/utils/patchMithril.js index 672b2e39e..8935b2e79 100644 --- a/framework/core/js/lib/utils/patchMithril.js +++ b/framework/core/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);