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:
jean-emmanuel 2025-01-11 14:20:17 +01:00
parent 6ed34736f7
commit 1bfc558f83
2 changed files with 4 additions and 1 deletions

View file

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