Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onerror not working #13

Open
giuliaSan opened this issue Feb 14, 2024 · 1 comment
Open

onerror not working #13

giuliaSan opened this issue Feb 14, 2024 · 1 comment

Comments

@giuliaSan
Copy link

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

@bestkolobok
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants