editor: wrap/cut/delete multiple widget not working properly (#206)

This commit is contained in:
jean-emmanuel 2018-03-06 21:39:43 +01:00
parent 4044ecfec2
commit 85b973cb67
2 changed files with 2 additions and 1 deletions

View file

@ -152,7 +152,7 @@ var handleClick = function(event) {
if (!editor.selectedWidgets.length) return
var index = editor.selectedWidgets.map((w) => DOM.index(w.container)).sort().reverse(),
var index = editor.selectedWidgets.map((w) => DOM.index(w.container)).sort((a,b)=>{return b-a}),
data = editor.selectedWidgets.map((w) => w.props),
type = editor.selectedWidgets[0].props.type == 'tab' ? 'tab' : 'widget',
parent = editor.selectedWidgets[0].parent