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

Bug when setting node.Visible false on node creation #476

Closed
alamfaust opened this issue Oct 3, 2024 · 1 comment
Closed

Bug when setting node.Visible false on node creation #476

alamfaust opened this issue Oct 3, 2024 · 1 comment
Labels
bug Something isn't working fixed/done

Comments

@alamfaust
Copy link

When setting node.Visible=false on node creation, exception:
Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element'. is thrown.
https://github.com/Blazor-Diagrams/Blazor.Diagrams/blob/62ca0e55c36d851f7663b61a5fa671bfbc09302b/src/Blazor.Diagrams/Components/Renderers/NodeRenderer.cs#L136
maybe Visible needs to get checked before registering the observer.

@zHaytam zHaytam added the bug Something isn't working label Nov 2, 2024
@zHaytam zHaytam mentioned this issue Dec 3, 2024
@zHaytam
Copy link
Collaborator

zHaytam commented Dec 3, 2024

3.0.3 is out in NuGet, and it includes a fix for this, check it out!

I'll close this for now, but feel free to re-open if something is wrong.

@zHaytam zHaytam closed this as completed Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed/done
Projects
None yet
Development

No branches or pull requests

2 participants