Skip to content

Commit 411b5f9

Browse files
vishalshrm539Sharma
andauthored
Fixed dropdown readonly not working as expected (#284)
* Fixed dropdown readonly not working as expected * Updated to make use of the existing instance variable --------- Co-authored-by: Sharma <[email protected]>
1 parent e29e3db commit 411b5f9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,9 @@ export class DropdownComponent implements OnInit, OnDestroy {
239239
this.localePath,
240240
this.pConn$.getLocaleRuleNameFromKeys(this.localeClass, this.localeContext, this.localeName)
241241
);
242+
243+
this.localizedValue = this.options$?.find(opt => opt.key === this.value$)?.value || this.localizedValue;
244+
242245
// trigger display of error message with field control
243246
if (this.angularPConnectData.validateMessage != null && this.angularPConnectData.validateMessage != '') {
244247
const timer = interval(100).subscribe(() => {

0 commit comments

Comments
 (0)