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
|
|
@ -7,6 +7,7 @@
|
|||
- missing last key in keyboard widget
|
||||
- editor: select parent widget after deleting a widget
|
||||
- regression letting user to scroll the main document
|
||||
- editor: wrap/cut/delete multiple widget not working properly
|
||||
- widgets
|
||||
- text: set line-height relative to font size
|
||||
|
||||
|
|
|
|||
|
|
@ -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