editor: fix children reordering (regression introducted when removed most of jquery calls) (issue #175)

This commit is contained in:
jean-emmanuel 2018-03-02 16:19:41 +01:00
parent 6e47bbf2f2
commit 467fdb7c95
2 changed files with 2 additions and 1 deletions

View file

@ -112,7 +112,7 @@ module.exports = function editField(editor, widget, propName, defaultValue){
for (var i in widget.props[propName]) {
list.appendChild(DOM.create(`
<li class="sortables">
<li class="sortables" data-index="${i}">
<a class="btn small" data-action="select">${widget.props[propName][i].id}</a>
<span data-action="remove"><i class="fa fa-times"></i></span>
</li>