fix(setPosition): rawPosition never getting updated when setPosition was called (#2006)

* Fix setPosition issue

The rawPositions were never updated from using setPosition, now they are.

* Fix bubbling issue

Also, yes. It took me 8 hours to get back home. Deal with it :D

* Watch your copy paste
This commit is contained in:
Frangu Vlad
2017-10-07 02:55:30 +03:00
committed by Crawl
parent 3871662a95
commit f178f9ba6c

View File

@@ -306,7 +306,7 @@ class Util {
let updatedItems = sorted.array();
Util.moveElementInArray(updatedItems, item, position, relative);
updatedItems = updatedItems.map((r, i) => ({ id: r.id, position: i }));
return route.patch({ data: updatedItems, reason });
return route.patch({ data: updatedItems, reason }).then(() => updatedItems);
}
static basename(path, ext) {