widget: don't check props when parent widget emits created event
This commit is contained in:
parent
c14248ff30
commit
4d842c45b2
1 changed files with 1 additions and 1 deletions
|
|
@ -85,8 +85,8 @@ class Widget extends EventEmitter {
|
|||
|
||||
widgetManager.on(`widget-created.${this.hash}`, (e)=>{
|
||||
var {id, widget} = e
|
||||
if (widget == this.parent) return
|
||||
if (widget == this) id = 'this'
|
||||
if (widget == this.parent) id = 'parent'
|
||||
if (this.linkedProps[id]) {
|
||||
this.updateProps(this.linkedProps[id], widget)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue