fix: Preact adapter spreading props as children (#1084)
This commit is contained in:
parent
01e01a7567
commit
fce43e1d78
|
|
@ -33,9 +33,9 @@ const createPreactComponent = (
|
|||
stroke: color,
|
||||
}),
|
||||
style,
|
||||
...rest,
|
||||
},
|
||||
[...iconNode.map(([tag, attrs]) => h(tag, attrs)), ...toChildArray(children)],
|
||||
...[rest],
|
||||
);
|
||||
|
||||
Component.displayName = `${iconNamePascal}`;
|
||||
|
|
|
|||
Loading…
Reference in New Issue