From 94cf0fbdc9457fed78a4abb7a8243fa32f30b3ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Thu, 11 Jan 2024 21:39:35 +0100 Subject: [PATCH] console logs --- .../examples/sorter-with-two-containers/sorter-dashboard.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Umbraco.Web.UI.Client/examples/sorter-with-two-containers/sorter-dashboard.ts b/src/Umbraco.Web.UI.Client/examples/sorter-with-two-containers/sorter-dashboard.ts index 702c03fa38..471446d531 100644 --- a/src/Umbraco.Web.UI.Client/examples/sorter-with-two-containers/sorter-dashboard.ts +++ b/src/Umbraco.Web.UI.Client/examples/sorter-with-two-containers/sorter-dashboard.ts @@ -44,12 +44,14 @@ export class ExampleSorterDashboard extends UmbElementMixin(LitElement) { ...SORTER_CONFIG, performItemInsert: ({ item, newIndex }) => { this._items.splice(newIndex, 0, item); + console.log('inserted', item.name, 'at', newIndex, ' ', this._items.map((x) => x.name).join(', ')); this.requestUpdate('_items'); return true; }, performItemRemove: ({ item }) => { const indexToMove = this._items.findIndex((x) => x.name === item.name); this._items.splice(indexToMove, 1); + console.log('removed', item.name, 'at', indexToMove, ' ', this._items.map((x) => x.name).join(', ')); this.requestUpdate('_items'); return true; },