-
Notifications
You must be signed in to change notification settings - Fork 8k
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
Cannot read property 'appendChild' of undefined #1933
Comments
Hello, Any news on this issue ? |
I had the same issue with a nested child route, had a working I SOLVED it by wrapping the third
Sub child Module
|
Solved this problem by removing the
|
@kainysheva can you exaplain how you resolved this? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue type
I'm submitting a ... (check one with "x")
Issue description
Current behavior:
When a lazy loaded module is opened, a NbOverlayContainerAdapter gets constructed along with it which wont have its setContainer() called. This causes the nbDialog to fail in _createContainer()
Expected behavior:
setContainer() should be called, or createContainer() should append to document body if container undefined
Steps to reproduce:
I am using ngx-admin, I am calling an overlay container. Clicking that results in an error. I have looked up to nebular and the issue provided is to wrap app.component.html within . But Remember ngx-admin has its app.component template as just . The Pages module is wrapped within a layout template . The temporary solution provided shrinks my view content and it is all into a smaller window. Because i presume we have a layout inside a layout again. (ngx-sample-layout comes with its own tag with all the header and sidebar content.
Related code:
https://stackblitz.com/edit/nebular-overlay-container-adapter-bug?file=src%2Fapp%2Fapp.component.html
Other information:
npm, node, OS, Browser
Angular, Nebular
The text was updated successfully, but these errors were encountered: