matrix: nested property inheritance (eg. @{id_@{id_x}}) not working in props

This commit is contained in:
jean-emmanuel 2021-09-14 09:29:23 +02:00
parent 91d018f06e
commit 14367fc6e1
3 changed files with 5 additions and 2 deletions

View file

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

View file

@ -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"

View file

@ -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] = []