@sprucelabs/heartwood-view-controllers 121.1.3 → 121.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -35,11 +35,12 @@ export default class ListViewController extends AbstractViewController {
|
|
|
35
35
|
var _a;
|
|
36
36
|
const response = yield ((_a = this.dragAndDropSortHandler) === null || _a === void 0 ? void 0 : _a.call(this, newRowIds));
|
|
37
37
|
if (response === false) {
|
|
38
|
-
return;
|
|
38
|
+
return false;
|
|
39
39
|
}
|
|
40
40
|
this._rowVcs = [];
|
|
41
41
|
const newRows = newRowIds.map((id) => this.model.rows.find((r) => r.id === id));
|
|
42
42
|
this.model.rows = newRows;
|
|
43
|
+
return true;
|
|
43
44
|
});
|
|
44
45
|
if (options.rows) {
|
|
45
46
|
for (const row of options.rows) {
|
|
@@ -18,11 +18,12 @@ class ListViewController extends Abstract_vc_1.default {
|
|
|
18
18
|
this.handleDragAndDropSort = async (newRowIds) => {
|
|
19
19
|
const response = await this.dragAndDropSortHandler?.(newRowIds);
|
|
20
20
|
if (response === false) {
|
|
21
|
-
return;
|
|
21
|
+
return false;
|
|
22
22
|
}
|
|
23
23
|
this._rowVcs = [];
|
|
24
24
|
const newRows = newRowIds.map((id) => this.model.rows.find((r) => r.id === id));
|
|
25
25
|
this.model.rows = newRows;
|
|
26
|
+
return true;
|
|
26
27
|
};
|
|
27
28
|
if (options.rows) {
|
|
28
29
|
for (const row of options.rows) {
|
package/package.json
CHANGED