From c1720b4a52c379c565cf20095ffd912bb0a3f3dd Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Mon, 29 Dec 2025 13:47:13 +0100 Subject: [PATCH] widget: updateProps: add a special case for value property, when edited (remotely or from the editor), check against the value state instead to decide whether to update the state or not. The regular behavior that works well for other properties is otherwise confusing for the value as it is not ovious to the user that there are two values (the property and the state) --- src/client/widgets/common/widget.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/widgets/common/widget.mjs b/src/client/widgets/common/widget.mjs index 22c42acc..908728a4 100644 --- a/src/client/widgets/common/widget.mjs +++ b/src/client/widgets/common/widget.mjs @@ -931,7 +931,7 @@ class Widget extends EventEmitter { if (widget === this && updatedProps.includes(propName)) continue let propValue = this.resolveProp(propName, undefined, false), - oldPropValue = this.getProp(propName) + oldPropValue = propName == 'value' && options.fromEditor ? this.value : this.getProp(propName) if (!deepEqual(oldPropValue, propValue)) {