editor: adapt sortable children list callback
This commit is contained in:
parent
1dfcc18927
commit
f3be43b925
1 changed files with 2 additions and 3 deletions
|
|
@ -173,9 +173,8 @@ module.exports = function editField(editor, widget, propName, defaultValue){
|
|||
var index = $(ui.item).index()
|
||||
|
||||
widget.props[propName].splice(index, 0, widget.props[propName].splice(oldindex, 1)[0])
|
||||
widget.children.splice(index, 0, widget.children.splice(oldindex, 1)[0])
|
||||
updateWidget(widget)
|
||||
editor.pushHistory()
|
||||
updateWidget(widget, {removedIndexes: [index, oldindex], addedIndexes: [index, oldindex]})
|
||||
editor.pushHistory({removedIndexes: [index, oldindex], addedIndexes: [index, oldindex]})
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue