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)

This commit is contained in:
jean-emmanuel 2025-12-29 13:47:13 +01:00
parent 80e5b048ea
commit c1720b4a52

View file

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