diff --git a/CHANGELOG.md b/CHANGELOG.md index bc250756..a0915a12 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,13 +14,12 @@ - input/textarea/select no longer have their appearance property reset in custom html - canvas: added `contextType` property - file: honor server's `remote-root` option (remove root path from displayed path and returned value) - - matrix: if `scroll` is `true`, children's values no longer feed the matrix' value and onValue script, it will be used for scrolling state, like with panels - menu: changed default `layout` to `vertical` - root/panel/modal/tab: support setting `scroll` to `hidden` (hides scrollbars and allows scrolling) - add new `scrollbar` widget that connects to a scrolling container widget and acts as it scrollbar - editor - - selecting a widget automatically shows it in the widget tree if it's not minimized + - selecting a widget automatically shows it in the widget tree if it's not minimized - scripting - user scripts are longer protected against infinite loop and the main window object may be reached (it's not supported to break out of scripting context, but resources are no longer wasted to prevent it) diff --git a/src/client/widgets/containers/matrix.mjs b/src/client/widgets/containers/matrix.mjs index 843a10ff..0b04df15 100644 --- a/src/client/widgets/containers/matrix.mjs +++ b/src/client/widgets/containers/matrix.mjs @@ -45,24 +45,22 @@ class Matrix extends Panel { this.resolveLock = false - if (!this.getProp('scroll')) { - this.on('value-changed',(e)=>{ + this.on('value-changed',(e)=>{ - if (e.widget === this) return + if (e.widget === this) return - var widget = this.getProp('widgetType') === 'clone' ? e.widget.parent : e.widget + var widget = this.getProp('widgetType') === 'clone' ? e.widget.parent : e.widget - if (widget.parent !== this) return + if (widget.parent !== this) return - this.value[widget._index] = e.widget.getValue() - - this.changed({ - ...e.options, - id: widget.getProp('id') - }) + this.value[widget._index] = e.widget.getValue() + this.changed({ + ...e.options, + id: widget.getProp('id') }) - } + + }) if (parser.widgets[this.getProp('widgetType')]) {