From 0cab61464724c8722afeb9e9a5b18b1dea44b286 Mon Sep 17 00:00:00 2001 From: ashklianko Date: Wed, 18 Sep 2024 10:56:25 +0200 Subject: [PATCH] Misc changes for the new tree- and -list api #3696 --- .../common/js/ui/selector/list/SelectableListBoxWrapper.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/resources/assets/admin/common/js/ui/selector/list/SelectableListBoxWrapper.ts b/src/main/resources/assets/admin/common/js/ui/selector/list/SelectableListBoxWrapper.ts index 4275ed884..32a847efd 100644 --- a/src/main/resources/assets/admin/common/js/ui/selector/list/SelectableListBoxWrapper.ts +++ b/src/main/resources/assets/admin/common/js/ui/selector/list/SelectableListBoxWrapper.ts @@ -370,6 +370,10 @@ export class SelectableListBoxWrapper } protected handleItemUpdated(item: I): void { + this.updateItemIfSelected(item); + } + + updateItemIfSelected(item: I): void { const itemId = this.listBox.getIdOfItem(item); if (this.selectedItems.has(itemId)) {