improve default window creation

This commit is contained in:
srgooglo 2022-10-12 19:44:52 +02:00
parent 0b70162a11
commit 5e3a36bc98

View File

@ -74,8 +74,10 @@ class DOMWindow {
this.currentRender = null this.currentRender = null
} }
createDefaultWindow = () => { createDefaultWindow = (children, props) => {
return this.render(<DefaultWindowRender {...this.props} id={this.id} key={this.key} destroy={this.destroy} />) return this.render(<DefaultWindowRender {...this.props} {...props} id={this.id} key={this.key} destroy={this.destroy} >
{children}
</DefaultWindowRender>)
} }
} }