yansenlei / VJsoneditor

:large_blue_diamond: vue use jsoneditor
https://yansenlei.github.io/VJsoneditor/
Apache License 2.0
182 stars 45 forks source link

onError event not catching errors for buttons in the menu (format, sort, repair, changing modes etc.) #32

Closed jspangl3r closed 3 years ago

jspangl3r commented 3 years ago

onError is successfully called when an error exists within the json, but onError isn't being called when clicking one of these buttons (format, sort, repair, etc) when an error exists within the json. See my attached photo, where you can see my error function printing out the validation error, but when I attempt to change modes with the error still there, the error isn't caught (the red text in the photo)

unknown

Edit: reinstalling the module actually fixed this issue for me.