retejs / readonly-plugin

https://retejs.org
MIT License
3 stars 4 forks source link

editor hangs when switching to module #1

Closed Flippo24 closed 6 years ago

Flippo24 commented 6 years ago

The editor wont clear, when switching to a module1.rete. I used the module example an added the readonly module from jsdelivr.

grafik

when switching back to index.rete, browser hangs...

Same on Chrome and Firefox.

Ni55aN commented 6 years ago

Fixed: https://github.com/retejs/rete/commit/82fec077edb7f2dc280d74309dabb5492d92f953

Will be publised soon.

Now try

async function openModule(name) {
    currentModule.data = editor.toJSON();

    currentModule = modules[name];
    editor.silent = true; // hot fix
    await editor.fromJSON(currentModule.data);
}
Flippo24 commented 6 years ago

:thumbsup: Fixed! Thanks.