diff --git a/CHANGELOG.md b/CHANGELOG.md index 5c7db04e..eabcf318 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -41,6 +41,8 @@ * Github: [PR-579](https://github.com/pegasystems/angular-sdk-components/pull/579) * **Fixed the issue where changing a property value on the screen was not reflected in the list below.** * Github: [PR-581](https://github.com/pegasystems/angular-sdk-components/pull/581) +* **Fixed search form label issue, fallback to inherited label when config label is missing.** + * Github: [PR-581](https://github.com/pegasystems/angular-sdk-components/pull/582) # [25.1.13](https://github.com/pegasystems/angular-sdk/tree/release/25.1.13) - Released: 12/06/2026 diff --git a/packages/angular-sdk-components/src/lib/_components/template/data-reference/search-form/search-form.component.html b/packages/angular-sdk-components/src/lib/_components/template/data-reference/search-form/search-form.component.html index 6d36b7c2..6dbc8416 100644 --- a/packages/angular-sdk-components/src/lib/_components/template/data-reference/search-form/search-form.component.html +++ b/packages/angular-sdk-components/src/lib/_components/template/data-reference/search-form/search-form.component.html @@ -1,5 +1,5 @@
-
{{ propsToUse.label }}
+

{{ label$ }}

diff --git a/packages/angular-sdk-components/src/lib/_components/template/data-reference/search-form/search-form.component.ts b/packages/angular-sdk-components/src/lib/_components/template/data-reference/search-form/search-form.component.ts index 86297118..e167e5fb 100644 --- a/packages/angular-sdk-components/src/lib/_components/template/data-reference/search-form/search-form.component.ts +++ b/packages/angular-sdk-components/src/lib/_components/template/data-reference/search-form/search-form.component.ts @@ -48,6 +48,7 @@ export class SearchFormComponent implements OnInit, OnChanges { tabItems: any[] = []; searchCategoriesComp: any; propsToUse: any; + label$: string; tabData: any = []; tabCountSources: any; deferLoadedTabs: any; @@ -59,6 +60,7 @@ export class SearchFormComponent implements OnInit, OnChanges { this.isInitialized = true; this.configProps$ = this.pConn$.resolveConfigProps(this.pConn$.getConfigProps()); this.propsToUse = { ...this.pConn$.getInheritedProps() }; + this.label$ = this.configProps$?.label || this.propsToUse.label; // When called from ObjectReference, pConn$ itself acts as deferLoadedTabs (no children[2]) if (this.type === 'ObjectReference') { this.deferLoadedTabs = { getPConnect: () => this.pConn$ };