Skip to content

Commit 7efa70d

Browse files
Abhinegi2sleidig
andauthored
fix: ensure dropdown options are filtered correctly with the given search text (#3538)
fixes #3526 --------- Co-authored-by: Sebastian Leidig <sebastian@aam-digital.com>
1 parent ba96653 commit 7efa70d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/app/core/basic-datatypes/configurable-enum/display-configurable-enum/display-configurable-enum.component.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, OnInit } from "@angular/core";
1+
import { Component, OnChanges, SimpleChanges } from "@angular/core";
22
import { ViewDirective } from "../../../entity/default-datatype/view.directive";
33
import { DynamicComponent } from "../../../config/dynamic-components/dynamic-component.decorator";
44

@@ -17,11 +17,12 @@ import { ConfigurableEnumValue } from "../configurable-enum.types";
1717
})
1818
export class DisplayConfigurableEnumComponent
1919
extends ViewDirective<ConfigurableEnumValue | ConfigurableEnumValue[]>
20-
implements OnInit
20+
implements OnChanges
2121
{
2222
iterableValue: ConfigurableEnumValue[] = [];
2323

24-
ngOnInit() {
24+
override ngOnChanges(changes?: SimpleChanges) {
25+
super.ngOnChanges(changes);
2526
this.initValue();
2627
}
2728

0 commit comments

Comments
 (0)