Is this a regression?
The previous version in which this bug was not present was
No response
Description
When adding the most basic experimental mat-slider to a page it throws the error
TypeError: Cannot read properties of undefined (reading '_hostElement')
when initializing the page. This does not happen with other experimental controls or the normal mat-slider. The page does not use a form.
Reproduction
Steps to reproduce:
- Create a page with routing (in my case it is lazy-loaded but I don't think this matters)
- craete a containing a
- Navigate to the page and an alert is show with the above message
Expected Behavior
the experimental mat-slider works as expected
Actual Behavior
Error thrown and the slider renders as a solid bar
Environment
- Angular: 13.0.2 (also 12.x)
- CDK/Material: Experimental 13.0.2
- Browser(s): Chrome 96
- Operating System (e.g. Windows, macOS, Ubuntu): Windows 10