editor: wrap/cut/delete multiple widget not working properly (#206)
This commit is contained in:
parent
4044ecfec2
commit
85b973cb67
2 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue