props: regression in linkedprops listeners
This commit is contained in:
parent
a82b9fa899
commit
04366ee8df
2 changed files with 10 additions and 1 deletions
|
|
@ -1,5 +1,10 @@
|
|||
# Changelog
|
||||
|
||||
# 0.38.1
|
||||
|
||||
- bug fixes
|
||||
- regression with `@{parent}` calls
|
||||
|
||||
## 0.38.0
|
||||
|
||||
- bug fixes
|
||||
|
|
|
|||
|
|
@ -343,7 +343,11 @@ class Widget extends EventEmitter {
|
|||
changedProps = type === 'prop-changed' ? e.props : type === 'change' ? ['value'] : undefined,
|
||||
linkedProps = type === 'change' ? this.linkedPropsValue : this.linkedProps
|
||||
|
||||
if (widget === this.parent) return
|
||||
if (widget === this.parent) {
|
||||
if (type === 'widget-created') return
|
||||
id = 'parent'
|
||||
}
|
||||
|
||||
if (widget === this) id = 'this'
|
||||
|
||||
if (linkedProps[id]) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue