Skip to content

Commit

Permalink
fix: block of search for input less than 3 characters (#19)
Browse files Browse the repository at this point in the history
* fix: block of search for input less than 3 characters

* fix: added required validator for yang search
  • Loading branch information
dmytro-kyrychenko authored Jan 20, 2023
1 parent f458ef2 commit e5e5b9a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export class YangSearchComponent implements OnInit, OnDestroy, AfterViewInit {

private initForm() {
this.form = this.fb.group({
searchTerm: ['', [Validators.minLength(3), this.ycValidations.regexpValidation()]],
searchTerm: ['', [Validators.minLength(3), Validators.required, this.ycValidations.regexpValidation()]],
searchOptions: this.fb.group({
caseSensitive: [false],
regularExpression: [false],
Expand Down

0 comments on commit e5e5b9a

Please sign in to comment.