property inheritance: always check 'value' prop first if it's potentially chanched (to apply it asap)
This commit is contained in:
parent
9c04c778e5
commit
53b3dddade
1 changed files with 5 additions and 0 deletions
|
|
@ -288,6 +288,11 @@ module.exports = class _widgets_base extends EventEmitter {
|
|||
|
||||
updateProps(propNames, options){
|
||||
|
||||
if (propNames.indexOf('value') > 0) {
|
||||
propNames.splice(propNames.indexOf('value'), 1)
|
||||
propNames.unshift('value')
|
||||
}
|
||||
|
||||
for (var propName of propNames) {
|
||||
|
||||
let propValue = this.resolveProp(propName, undefined, false)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue