From 33c75865be273918aab001fe99546a416ff2f3bf Mon Sep 17 00:00:00 2001 From: bordun Date: Mon, 30 Mar 2020 12:01:15 +0200 Subject: [PATCH] editor: ensure @{} bindings are always updated upon edition --- CHANGELOG.md | 1 + src/client/widgets/common/widget.js | 10 ++++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 23e4b032..cefe3418 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,6 +32,7 @@ - allow copying tabs (to tab containers only) - shared clipboard accross all clients - prevent interaction with widgets when `shift` or `ctrl` is held + - ensure @{} bindings are always updated upon edition - widget changes diff --git a/src/client/widgets/common/widget.js b/src/client/widgets/common/widget.js index 525ed01b..472f4b44 100644 --- a/src/client/widgets/common/widget.js +++ b/src/client/widgets/common/widget.js @@ -731,11 +731,13 @@ class Widget extends EventEmitter { return this.reCreateWidget({reCreateOptions: options}) - } else if (changedProps.length) { + } - if (options && options.fromEditor) { - this.checkLinkedProps(propNames) - } + if (options && options.fromEditor) { + this.checkLinkedProps(propNames) + } + + if (changedProps.length) { for (var i in changedProps) { this.onPropChanged(changedProps[i].propName, options, changedProps[i].oldPropValue)