From 5b3d3e671ca836e401512263e6c6d57054029df0 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Mon, 29 Dec 2025 13:56:32 +0100 Subject: [PATCH] widget: amend c1720b4a52c379c565cf20095ffd912bb0a3f3dd to keep things as unchanged as possible --- src/client/widgets/common/widget.mjs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/client/widgets/common/widget.mjs b/src/client/widgets/common/widget.mjs index 908728a4..9e6c278b 100644 --- a/src/client/widgets/common/widget.mjs +++ b/src/client/widgets/common/widget.mjs @@ -931,9 +931,12 @@ class Widget extends EventEmitter { if (widget === this && updatedProps.includes(propName)) continue let propValue = this.resolveProp(propName, undefined, false), - oldPropValue = propName == 'value' && options.fromEditor ? this.value : this.getProp(propName) + oldPropValue = this.getProp(propName) - if (!deepEqual(oldPropValue, propValue)) { + if ( + !deepEqual(oldPropValue, propValue) || + (propName == 'value' && options.fromEditor && !deepEqual(oldPropValue, this.value)) + ) { if (!this.isDynamicProp(propName)) { @@ -965,7 +968,6 @@ class Widget extends EventEmitter { } - } }