Blazor-Diagrams / Blazor.Diagrams

A fully customizable and extensible all-purpose diagrams library for Blazor
https://blazor-diagrams.zhaytam.com
MIT License
919 stars 176 forks source link

Script.js Unobserver Throw #281

Closed adrien426 closed 10 months ago

adrien426 commented 1 year ago

image The script does not test if the element is not nul :
image To fix this issue, I added a test before doing these actions:

  if (typeof (element) != 'undefined' && element != null) {
            s.ro.unobserve(element);
            delete s.tracked[id];
            delete s.canvases[id];
    }

In project: Blazor.Diagrams File: wwwroot/script.js Line: 41

zHaytam commented 1 year ago

Hello, is this using version 2.1.6?

adrien426 commented 1 year ago

Hello, is this using version 2.1.6?

Yes :)