matrix: nested property inheritance (eg. @{id_@{id_x}}) not working in props
This commit is contained in:
parent
91d018f06e
commit
5f9f725310
3 changed files with 5 additions and 2 deletions
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
- bug fixes
|
||||
- modal: remove `html` property
|
||||
- matrix: nested property inheritance (eg. `@{id_@{id_x}}`) not working in `props`
|
||||
|
||||
## 1.9.13
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"name": "open-stage-control",
|
||||
"productName": "Open Stage Control",
|
||||
"description": "Libre and modular OSC / MIDI controller",
|
||||
"version": "1.9.13",
|
||||
"version": "1.9.14",
|
||||
"author": {
|
||||
"name": "Jean-Emmanuel Doucet",
|
||||
"email": "jean-emmanuel@ammd.net"
|
||||
|
|
|
|||
|
|
@ -517,7 +517,7 @@ class Widget extends EventEmitter {
|
|||
if (content.indexOf('@{') >= 0) {
|
||||
|
||||
content = balancedReplace('@', '{', '}', content, (subcontent)=>{
|
||||
return this.resolveProp(propName, '@{' + subcontent + '}', storeLinks ? 'nested' : false, this)
|
||||
return this.resolveProp(propName + '-nested', '@{' + subcontent + '}', storeLinks ? 'nested' : false, this)
|
||||
})
|
||||
|
||||
}
|
||||
|
|
@ -565,6 +565,8 @@ class Widget extends EventEmitter {
|
|||
|
||||
if (storeLinks) {
|
||||
|
||||
if (propName.indexOf('-nested') !== -1) propName = propName.replace('-nested', '')
|
||||
|
||||
if (k == 'value') {
|
||||
|
||||
if (!this.linkedPropsValue[id]) this.linkedPropsValue[id] = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue