This commit is contained in:
bordun 2021-04-26 19:54:30 +02:00
parent 51791ea6d8
commit 930ecebbe6
2 changed files with 3 additions and 3 deletions

View file

@ -96,7 +96,7 @@ class Editor {
}
}
var container = updateWidget(to, {removedIndexes: indices, addedIndexes: indices, preventSelect: true})
let container = updateWidget(to, {removedIndexes: indices, addedIndexes: indices, preventSelect: true})
this.pushHistory({removedIndexes: indices, addedIndexes: indices})
this.select(container.children[newIndex])
@ -107,7 +107,7 @@ class Editor {
from.props[propName].splice(oldIndex, 1)
updateWidget(from, {removedIndexes: [oldIndex], preventSelect: true})
var container = updateWidget(to, {addedIndexes: [newIndex], preventSelect: true})
let container = updateWidget(to, {addedIndexes: [newIndex], preventSelect: true})
this.pushHistory()
this.select(container.children[newIndex])

View file

@ -191,7 +191,7 @@ class UiTree extends UiWidget {
setData: (dataTransfer)=>{
dataTransfer.setDragImage(this.dragDummy, 0, 0)
},
onStart: function (event) {
onStart: (event)=>{
placeholder = event.from.insertBefore(event.clone.cloneNode(true), event.from.childNodes[event.oldIndex])
placeholder.style.display = 'block'
},