-
-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Input properties don't update/save correctly #140
Comments
I'm facing the same issue: the input changes appearance from fill to outline, if I disable the input. Here is my on submit code:
The reason for disabling and re-enabling the field is that the select-country component doesn't expose a blur API. Expected behaviour:
Actual behaviour:
|
I have the same bug, the appearance reverts to outline upon disabling. In addition, in my case the placeholder text is also forgotten and reverts to the default "Select country". In my case the country selector needs to be enabled only if another form field is false (it's a "specify country only if different than the previous one" situation) and upon toggling it the appearance and placeholder are lost. this._formSubscription.add(this.form.controls.getCountryFromAddress.valueChanges
.subscribe((value: boolean | null | undefined) => {
if (value) {
this.form.controls.documentCountry?.setValue(null);
this.form.controls.documentCountry?.disable();
} else {
this.form.controls.documentCountry?.enable();
}
})) Expected behavior:
Actual behavior:
System:
|
I just upgraded to Angular 17.3.5 (with 17.0.0 of @angular-material-extensions/select-country) and the issue is still the same |
@AnthonyNahas are you still maintaining this project? Because this is a pretty big issue in my opinion and there was no response for quiet a while now. |
Describe the bug
I'm using the the mat-select-country inside a reactive form:
(Note: the FormGroups are nested because this is a minimal copy of the actual code)
But the following doesn't work:
The translation change is sometimes triggered during runtime by the user and this is working correctly, so the text are all getting translated.
Expected behavior
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: