matrix: issues when changing non-dynamic properties (matrix' content not properly removed)

This commit is contained in:
bordun 2020-11-05 22:25:09 +01:00
parent e5e5685149
commit 5000a70134
2 changed files with 8 additions and 1 deletions

View file

@ -2,13 +2,14 @@ var widgetManager = require('../managers/widgets'),
resize = require('../events/resize'),
stateManager = require('../managers/state'),
parser = require('../parser'),
Panel,
Panel, Matrix,
editor,
scrollState = {}
setTimeout(()=>{
editor = require('./')
Panel = require('../widgets/containers/panel')
Matrix = require('../widgets/containers/matrix')
})
function updateWidget(widget, options={}) {
@ -43,6 +44,7 @@ function updateWidget(widget, options={}) {
}
var reuseChildren = options.reuseChildren !== false && widget instanceof Panel
&& !(widget instanceof Matrix)
var children = undefined,
removedChildren = []