Skip to content

Pass the id to Svelvet element doesn't affect assigned id on HTML Svelvet Element #544

@kotekpsotek

Description

@kotekpsotek

Description

Meanwhile I passed the custom id to Svelvet element, that didn't cause the change to custom one. Because of this I belive are associated such erros in my app like:

  • In the spawned separated Svelvet diagrams, nodes of diagram other than first spawned - aren't connected to each other (my app has to present more than one diagram along the way)
  • The first spawned diagram tries to connect with nodes from below diagram despite that both diagrams nodes have differentiated id, although the Svelvet element has under each condition and each case - identical id

Reproduction

{#each listDiagrams as listDiagram}
<Svelvet id={listDiagram.id} height="{500}" fitView={true} minimap={false} TD controls locked={true} theme="light" edgeStyle="straight"> <!-- The Svelvet id doesn't retrive change to one custom setted up -->
           <!--- .... content like Nodes, Anchors, Edges -->
</Svelvet>
{/each}

System information

Svelvet npm version: [email protected]
SvelteKit: @sveltejs/[email protected]

Additional information

No response

👨‍👧‍👦 Contributing

  • 🙋‍♂️ Yes, I'd love to make a PR to fix this bug!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions