bestkolobok / vue3-jsoneditor

https://bestkolobok.github.io/vue3-jsoneditor/
MIT License
52 stars 9 forks source link

onerror not working #13

Open giuliaSan opened 9 months ago

giuliaSan commented 9 months ago

Using the plugin in vue3 Onerror is not working, tried putting it inside setup() and unmounted(), cannot intercept the error...

bestkolobok commented 8 months ago

Hi @giuliaSan, the onError event is called only in some special cases. You can see this, for example, when you have the wrong JSON and you click the sort button in the top menu. Regarding these cases and the logic of triggering this event, you can ask the author of the source package svelte-jsoneditor, since there is no description of when and how this event should trigger.