mirror of
https://github.com/flarum/framework.git
synced 2024-12-02 15:03:44 +08:00
Make sure components receive all children properly
This commit is contained in:
parent
51510319c1
commit
1f4966bbf1
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user