widget: amend c1720b4a52 to keep things as unchanged as possible
This commit is contained in:
parent
c1720b4a52
commit
5b3d3e671c
1 changed files with 5 additions and 3 deletions
|
|
@ -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 {
|
|||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue