props: regression in linkedprops listeners

This commit is contained in:
jean-emmanuel 2018-10-20 15:47:38 +02:00
parent 87d20659c6
commit 09881ed02e
2 changed files with 10 additions and 1 deletions

View file

@ -1,5 +1,10 @@
# Changelog
# 0.38.1
- bug fixes
- regression with `@{parent}` calls
## 0.38.0
- bug fixes

View file

@ -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]) {