advanced syntaxes: display an error in the console in some unsupported advanced syntaxes use cases
This commit is contained in:
parent
b31b911a15
commit
a71df8177f
2 changed files with 16 additions and 1 deletions
|
|
@ -6,6 +6,9 @@
|
|||
- user resources not loading when using an external browser
|
||||
- advanced syntaxes resolution order issue
|
||||
|
||||
- advanced syntaxes
|
||||
- display an error in the console in some unsupported advanced syntaxes use cases
|
||||
|
||||
## 1.26.1
|
||||
|
||||
- bug fixes
|
||||
|
|
|
|||
|
|
@ -925,9 +925,21 @@ class Widget extends EventEmitter {
|
|||
|
||||
if (!this.isDynamicProp(propName)) {
|
||||
|
||||
if ((!widget || !this.contains(widget)) && !(widget === this && updatedProps.length === 1 && updatedProps[0] === 'value')) {
|
||||
if (widget && this.contains(widget)) {
|
||||
|
||||
this.errorProp(propName, '@{}', `a container can't use its child's properties to define non-dynamic properties.`)
|
||||
continue
|
||||
|
||||
} else if (widget === this && updatedProps.length === 1 && updatedProps[0] === 'value') {
|
||||
|
||||
this.errorProp(propName, '@{}', `a widget can't use it's own value to define non-dynamic properties.`)
|
||||
continue
|
||||
|
||||
} else {
|
||||
|
||||
reCreate = true
|
||||
break
|
||||
|
||||
}
|
||||
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue