editor: "wrap" deleting the widget just before the one being wrapped
This commit is contained in:
parent
b141546afd
commit
568c4cab34
2 changed files with 2 additions and 1 deletions
|
|
@ -229,7 +229,7 @@ var handleClick = function(event) {
|
|||
parent.props.widgets.splice(i,1)
|
||||
}
|
||||
|
||||
parent.props.widgets = parent.props.widgets.slice(0, i - 1).concat(wrap, parent.props.widgets.slice(i, parent.props.widgets.length))
|
||||
parent.props.widgets = parent.props.widgets.slice(0, i).concat(wrap, parent.props.widgets.slice(i, parent.props.widgets.length))
|
||||
|
||||
editor.select(updateWidget(parent, {preventSelect: true}))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue