Open austinw-fineart opened 4 years ago
Calling autoInit() multiple times https://material.io/develop/web/components/auto-init/ mdc-auto-init does not declare a function that takes the second optional argument used to call autoInit() multiple times without logging a warning.
mdc.autoInit(/* root */ document, () => {});
error TS2554: Expected 0-1 arguments, but got 2.
Calling autoInit() multiple times section seems to be outdated. Please follow: Calling subsequent mdc.autoInit() instead.
Calling autoInit() multiple times
Calling subsequent mdc.autoInit()
Thanks!
Bug report
Calling autoInit() multiple times https://material.io/develop/web/components/auto-init/ mdc-auto-init does not declare a function that takes the second optional argument used to call autoInit() multiple times without logging a warning.
Steps to reproduce
mdc.autoInit(/* root */ document, () => {});
Actual behavior
Your Environment: