matrix: back to the old value behavior since scrolling isn't related anymore

This commit is contained in:
jean-emmanuel 2025-09-24 08:44:55 +02:00
parent 5dde5a7f9f
commit 3fb8dee637
2 changed files with 11 additions and 14 deletions

View file

@ -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')]) {