matrix: issues when changing non-dynamic properties (matrix' content not properly removed)
This commit is contained in:
parent
e5e5685149
commit
5000a70134
2 changed files with 8 additions and 1 deletions
|
|
@ -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 = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue