Which @angular/* package(s) are the source of the bug?
core
Is this a regression?
No
Description
MAT-ERROR leaving the DOM is causing the parents animate.leave to be triggered. Reproduce by clicking in the code field without entering any value and trigger the error by clicking somewhere else.
Notice the red border of the error state and the error message appears.
Now focus again on text field and enter a value. The box will slide out because the mat-error removal will trigger the leave animation.
Please provide a link to a minimal reproduction of the bug
https://stackblitz.com/edit/stackblitz-starters-kjtfldgb?file=src%2Fmain.ts
Please provide the exception or error you saw
You can only visually see this.
Please provide the environment you discovered this bug in (run ng version)
Anything else?
No response
Which @angular/* package(s) are the source of the bug?
core
Is this a regression?
No
Description
MAT-ERROR leaving the DOM is causing the parents animate.leave to be triggered. Reproduce by clicking in the code field without entering any value and trigger the error by clicking somewhere else.
Notice the red border of the error state and the error message appears.
Now focus again on text field and enter a value. The box will slide out because the mat-error removal will trigger the leave animation.
Please provide a link to a minimal reproduction of the bug
https://stackblitz.com/edit/stackblitz-starters-kjtfldgb?file=src%2Fmain.ts
Please provide the exception or error you saw
Please provide the environment you discovered this bug in (run
ng version)Anything else?
No response