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
parent
commit
ed90531eb4
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      ui-ngx/src/app/shared/components/country-autocomplete.component.ts

2
ui-ngx/src/app/shared/components/country-autocomplete.component.ts

@ -130,7 +130,7 @@ export class CountryAutocompleteComponent implements OnInit, OnChanges, ControlV
if (changes.required) {
const requiredChanges = changes.required;
if (requiredChanges.currentValue !== requiredChanges.previousValue) {
if (requiredChanges.currentValue) {
if (this.required) {
this.countryFormGroup.get('country').addValidators(Validators.required);
} else {
this.countryFormGroup.get('country').removeValidators(Validators.required);

Loading…
Cancel
Save