SUPPORT-9020: fix from SUPPORT-8968

This commit is contained in:
Рауф Латыпов 2025-03-21 17:05:33 +03:00
parent 8b280783b7
commit be7e9b2ee0
2 changed files with 6 additions and 5 deletions

View file

@ -59,6 +59,7 @@ export class DropdownTreeViewComponent extends InputControl {
this.i18n.selectedItem = rootItem; this.i18n.selectedItem = rootItem;
this.value = rootItem ? rootItem.value : rootItem; this.value = rootItem ? rootItem.value : rootItem;
this.doCollapseLevel(); this.doCollapseLevel();
this.onValueChange(this.value);
this.cd.markForCheck(); this.cd.markForCheck();
}); });
} }

View file

@ -55,12 +55,12 @@ export class FilterGroupDelegate extends BaseComponent {
@Visible() @Visible()
public triggerFilter(): void { public triggerFilter(): void {
let filters = this.filterComponents let filters = this.filterComponents
.map(filter => filter.getFilter()) .map(filterComponent => filterComponent.getFilter())
.filter(filterModel => filterModel != null); .filter(filter => filter != null);
this.filterComponents this.filterComponents
.filter(filter => filter.getFilter() == null) .filter(filterComponent => filterComponent.getFilter() == null)
.forEach(filter => this.filterable.removeFilter(filter.getObjectId())); .forEach(filterComponent => this.filterable.removeFilter(filterComponent.getObjectId()));
return this.reload(filters); return this.reload(filters);
} }
@ -104,4 +104,4 @@ export class FilterGroupDelegate extends BaseComponent {
} }
}); });
} }
} }