widget: amend c1720b4a52 to keep things as unchanged as possible

This commit is contained in:
jean-emmanuel 2025-12-29 13:56:32 +01:00
parent c1720b4a52
commit 5b3d3e671c

View file

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