Browse Source
Merge pull request #14822 from thingsboard/lts-4.2
Merge lts-4.2 to rc
pull/14823/head
Vladyslav Prykhodko
9 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
ui-ngx/src/app/shared/components/country-autocomplete.component.ts
|
|
@ -130,7 +130,7 @@ export class CountryAutocompleteComponent implements OnInit, OnChanges, ControlV |
|
|
if (changes.required) { |
|
|
if (changes.required) { |
|
|
const requiredChanges = changes.required; |
|
|
const requiredChanges = changes.required; |
|
|
if (requiredChanges.currentValue !== requiredChanges.previousValue) { |
|
|
if (requiredChanges.currentValue !== requiredChanges.previousValue) { |
|
|
if (requiredChanges.currentValue) { |
|
|
if (this.required) { |
|
|
this.countryFormGroup.get('country').addValidators(Validators.required); |
|
|
this.countryFormGroup.get('country').addValidators(Validators.required); |
|
|
} else { |
|
|
} else { |
|
|
this.countryFormGroup.get('country').removeValidators(Validators.required); |
|
|
this.countryFormGroup.get('country').removeValidators(Validators.required); |
|
|
|