Skip to content

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

Closed
@alamfaust

Description

@alamfaust

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions