mirror of
https://github.com/flarum/framework.git
synced 2025-05-22 14:49:57 +08:00
Make sure components receive all children properly
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user