diff --git a/CHANGELOG.md b/CHANGELOG.md index cfdb69a8..0daec1f5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 1.15.4 + +- bug fixes + - matrix: avanced property issue in`props` property + ## 1.15.3 - bug fixes diff --git a/src/client/widgets/containers/matrix.js b/src/client/widgets/containers/matrix.js index 763f6e43..1b5c5e85 100644 --- a/src/client/widgets/containers/matrix.js +++ b/src/client/widgets/containers/matrix.js @@ -41,6 +41,8 @@ class Matrix extends Panel { this.value = [] + this.resolveLock = false + this.on('value-changed',(e)=>{ if (e.widget === this) return @@ -172,20 +174,20 @@ class Matrix extends Panel { resolveProp(propName, propValue, storeLinks, originalWidget, originalPropName, context) { - if (propName === 'props') { + if (propName === 'props' && !this.resolveLock) { + + this.resolveLock = true propValue = propValue !== undefined ? propValue : deepCopy(this.props[propName]) - if (typeof propValue === 'object' && propValue !== null) { - propValue = JSON.stringify(propValue) - } - var data = [], quantity = this.resolveProp('quantity', undefined, false, false, false) for (var i = 0; i < quantity; i++) { data[i] = super.resolveProp(propName, propValue, i === 0 ? storeLinks : false, originalWidget, originalPropName, {$: i}) } + this.resolveLock = false + return data } else {