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:
parent
80e5b048ea
commit
c1720b4a52
1 changed files with 1 additions and 1 deletions
|
|
@ -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)) {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue