[ACS-9374] Fix sonarcloud issue

This commit is contained in:
Shivangi917
2025-07-28 08:08:47 -04:00
parent 9a5e8b5bd5
commit 47c68adac9
@@ -131,12 +131,10 @@ export class SearchInputControlComponent implements OnInit, OnChanges {
} }
ngOnChanges(changes: SimpleChanges): void { ngOnChanges(changes: SimpleChanges): void {
if (changes['hasLibrariesConstraint'] && !changes['hasLibrariesConstraint'].firstChange) { if (changes['hasLibrariesConstraint'] && !changes['hasLibrariesConstraint'].firstChange && this.searchFieldFormControl.touched) {
if (this.searchFieldFormControl.touched) {
this.validateInput(); this.validateInput();
} }
} }
}
openDropdown() { openDropdown() {
this.searchInput.nativeElement.focus(); this.searchInput.nativeElement.focus();