Open Tethys0 opened 6 days ago
isValidationErrorChanged does not compare the messsage , if we have the same count of error message in the error array, though message is different , it won't trigger "onValidationError"
https://github.com/josdejong/jsoneditor/blob/develop/src/js/util.js#L1233https://github.com/josdejong/jsoneditor/blob/develop/src/js/util.js#L1233
We use custom validation and rely on onValidationError hook to reset the form control error.
Thanks for reporting! We should improve this isValidationErrorChanged function.
isValidationErrorChanged
Anyone able to help fix this? Help would be welcome.
isValidationErrorChanged does not compare the messsage , if we have the same count of error message in the error array, though message is different , it won't trigger "onValidationError"
https://github.com/josdejong/jsoneditor/blob/develop/src/js/util.js#L1233https://github.com/josdejong/jsoneditor/blob/develop/src/js/util.js#L1233
We use custom validation and rely on onValidationError hook to reset the form control error.