Skip to content

Commit f7445a0

Browse files
4manasamanasatumms2021389
authored
cascading dropdown data not updating correctly issue fixed (#310)
Co-authored-by: manasa <[email protected]> Co-authored-by: tumms2021389 <[email protected]>
1 parent 159db1f commit f7445a0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/angular-sdk-components/src/lib/_components/field/dropdown/dropdown.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ export class DropdownComponent implements OnInit, OnDestroy {
121121
// call updateSelf when initializing
122122
this.checkAndUpdate();
123123
// this should get called afer checkAndUpdate
124-
this.getDatapageData();
125124

126125
if (this.formGroup$) {
127126
// add control to formGroup
@@ -253,7 +252,7 @@ export class DropdownComponent implements OnInit, OnDestroy {
253252
);
254253

255254
this.localizedValue = this.options$?.find(opt => opt.key === this.value$)?.value || this.localizedValue;
256-
255+
this.getDatapageData();
257256
// trigger display of error message with field control
258257
if (this.angularPConnectData.validateMessage != null && this.angularPConnectData.validateMessage != '') {
259258
const timer = interval(100).subscribe(() => {

0 commit comments

Comments
 (0)