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
|
|
@ -5,6 +5,7 @@
|
|||
- bug fixes
|
||||
- multixy: `default` not applied when points are named
|
||||
- clone: avoid some unnecessary property checks
|
||||
- clone: prevent missing editions in target properties (e.g. VAR{} renamed with the same return value)
|
||||
|
||||
- client
|
||||
- show 3-dots menu in read-only mode with access to allowed items (e.g fullscreen)
|
||||
|
|
|
|||
|
|
@ -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