Skip to content
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

[BUG] using <mat-hint> element always throws ExpressionChangedAfterItHasBeenCheckedError error #375

Closed
Procisz opened this issue May 18, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@Procisz
Copy link

Procisz commented May 18, 2022

Describe the bug
mat-hint element throws "ExpressionChangedAfterItHasBeenCheckedError" error.

The complete error:
Error: NG0100: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value for 'attr.aria-describedby': 'null'. Current value: 'mat-hint-4'..

To Reproduce
Just simply insert a <mat-hint></mat-hint> inside the mat-form-field element

Expected behavior
:)

Additional context
I couldn't solve with ChangeDetectorRef detectChanges() method. I tried with static data, but nothing changed.

Example:
<mat-hint> Mat hint text example.</mat-hint>

@Procisz Procisz added the bug Something isn't working label May 18, 2022
@Procisz Procisz changed the title [BUG] [mat-hint element throws ExpressionChangedAfterItHasBeenCheckedError error] May 18, 2022
@Procisz Procisz changed the title [mat-hint element throws ExpressionChangedAfterItHasBeenCheckedError error] [mat-hint element alwasy throws ExpressionChangedAfterItHasBeenCheckedError error] May 18, 2022
@Procisz Procisz changed the title [mat-hint element alwasy throws ExpressionChangedAfterItHasBeenCheckedError error] [BUG] using <mat-hint> element always throws ExpressionChangedAfterItHasBeenCheckedError error May 18, 2022
@macjohnny
Copy link
Member

Hi
Are you sure this is related to ngx-mat-select-search?
Can you show the code you used?

@Procisz
Copy link
Author

Procisz commented May 19, 2022

Hi,
Yes I'm pretty sure.
I use this version: "ngx-mat-select-search": "^3.3.3",

The code is very big, but you can just simply insert a normal <mat-hint></mat-hint> element inside the <mat-form-field></mat-form-field> and you must see this error.
I forked the original repo now, inserted, and the error came up.

@Procisz
Copy link
Author

Procisz commented May 19, 2022

Okay,
I just upgraded it to the latest version and it seem like the promlem gone.
I don't understand, but I'll keep you updated.
Ty for your answer.

@macjohnny
Copy link
Member

closing this for now. if this occurs again, please let me know

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants