Skip to content
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

TypeError: Cannot read properties of null (reading 'firstElementChild') #374

Open
NemanjaRCT opened this issue Mar 26, 2024 · 1 comment

Comments

@NemanjaRCT
Copy link

I want to have small menu on diagram's node. When clicking on button, I want to both center node and show that menu. Without centering, it works perfectly. But when I use this.chart.setCentered(id).render(), node is centered but menu is not shown, and in console I have error: TypeError: Cannot read properties of null (reading 'firstElementChild'). And everything becomes pretty slow and buggy.
My question is, how can I implement center node and to keep that menu opened? I am using angular.
image

@bumbeishvili
Copy link
Owner

Can you provide an example where the issue is reproduced?

You can fork this sample and extend it

https://stackblitz.com/edit/js-yw1urt?file=index.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants