如何在 "ngx-intl-tel-input "类库中禁用标志?

问题描述 投票:0回答:1

如何在 "ngx-intl-tel-input "lib中禁用标志,我在表单中禁用了有ngx-intl-tel-input的输入字段,但没有禁用标志,请看问题解决"https:/github.comwebcat12345ngx-intl-tel-inputissues205。"

angular7 flags
1个回答
0
投票

这个问题已经在最新的版本中得到了修复,请看 "https:/github.comwebcat12345ngx-intl-tel-input..."。要禁用您的控件,包括国家下拉菜单。

phoneForm = new FormGroup({
   phone: new FormControl({
    value: undefined,
    disabled: true
  }, [Validators.required])
});

或者...

this.phoneForm.controls['phone'].disable();
© www.soinside.com 2019 - 2024. All rights reserved.