Skip to content

Commit

Permalink
AAE-23830 added condition to avoid enabling formControl when unnecessary
Browse files Browse the repository at this point in the history
  • Loading branch information
wojd0 committed Aug 2, 2024
1 parent c76743f commit 6ecc228
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,9 @@ export class PeopleCloudComponent implements OnInit, OnChanges, OnDestroy {
}
}

if (this.isReadonly()) {
if (this.isReadonly() && this.searchUserCtrl.enabled) {
this.searchUserCtrl.disable();
} else {
} else if (!this.isReadonly() && this.searchUserCtrl.disabled) {
this.searchUserCtrl.enable();
}
}
Expand Down

0 comments on commit 6ecc228

Please sign in to comment.