editor: force property update to prevent advanced syntax change from being unnoticed by clone widgets
For instance, a VAR{} may be renamed without its return value to change immediately
This commit is contained in:
parent
6ed34736f7
commit
1bfc558f83
2 changed files with 4 additions and 1 deletions
|
|
@ -915,7 +915,9 @@ class Widget extends EventEmitter {
|
|||
let propValue = this.resolveProp(propName, undefined, false),
|
||||
oldPropValue = this.getProp(propName)
|
||||
|
||||
if (!deepEqual(oldPropValue, propValue)) {
|
||||
if (!deepEqual(oldPropValue, propValue) || (options && options.fromEditor)) {
|
||||
// forced if initiated by the editor to make sure advanced syntax changes don't go unnoticed by clone
|
||||
// (a VAR{} may be renamed without its return value to change immediately)
|
||||
|
||||
if (!this.isDynamicProp(propName)) {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue