-
Notifications
You must be signed in to change notification settings - Fork 911
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
mdcFoundation
should be initialised before firstUpdated
#308
Comments
Being You can see the code path from |
Thanks for the explanation and pointer to the relevant code; odd that the initialisation is async when DOM manipulation is sync. Perhaps attempts to perform actions before a component is ready should queue actions and then handle them on |
Thanks @azakus! |
Delaying
mdcFoundation
instantiation untilfirstUpdated
(see base-element) means that any other methods which rely on the foundation (e.g. opening a snackbar) will fail.Is there a reason it's deferred instead of simply running in the constructor?
The text was updated successfully, but these errors were encountered: