fix(form-field): infinite loop when using outline appearance and element isn't in the DOM (#11406)
fix(form-field): infinite loop when using outline appearance and element isn't in the DOM (#11406)

Prevents the form field with an `outline` appearance from going into an infinite change detection loop if the form field is active, but isn't in the DOM. The issue comes from the fact that we've got a `Promise.resolve` inside an `AfterContentChecked` hook, which will kick off another round of change detection, causing the lifecycle hook to be called again.

Fixes #11329.
andrewseguin/material2,jelbourn/material2,Jefiozie/material2,mmalerba/material2,crisbeto/material2,angular/components,ppham27/material2,amcdnl/material2,jelbourn/material2,ppham27/material2,DevVersion/material2,ppham27/material2,josephperrott/material2,Jefiozie/material2,DevVersion/material2,DevVersion/material2,amcdnl/material2,jelbourn/material2,amcdnl/material2,andrewseguin/material2,DevVersion/material2,Jefiozie/material2,mmalerba/material2,josephperrott/material2,andrewseguin/material2,josephperrott/material2,mmalerba/material2,Jefiozie/material2,ppham27/material2,mmalerba/material2,jelbourn/material2,josephperrott/material2,amcdnl/material2,crisbeto/material2,angular/components,crisbeto/material2,mmalerba/material2,ppham27/material2,crisbeto/material2,jelbourn/material2,angular/components,Jefiozie/material2,DevVersion/material2,josephperrott/material2,amcdnl/material2,andrewseguin/material2,andrewseguin/material2,angular/components