You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you inject any elements into your component with ViewChild or ElementRef the nativeElements are the hidden server side rendered elements instead of the client side rendered elements.
This happens because the components are instantiated before preboot can clean up the DOM to give the user a nice transition from server to client rendered html.
I suspect angular assumes there are only one instance of specific DOM elements and then selects the first one in the DOM which are in fact at this point in time the hidden server side rendered elements.
ANOTHER possibility is that it's getting the correct elements but because they are display:none they have no heights etc.
The text was updated successfully, but these errors were encountered:
If you inject any elements into your component with ViewChild or ElementRef the nativeElements are the hidden server side rendered elements instead of the client side rendered elements.
This happens because the components are instantiated before preboot can clean up the DOM to give the user a nice transition from server to client rendered html.
I suspect angular assumes there are only one instance of specific DOM elements and then selects the first one in the DOM which are in fact at this point in time the hidden server side rendered elements.
ANOTHER possibility is that it's getting the correct elements but because they are display:none they have no heights etc.
The text was updated successfully, but these errors were encountered: