jsoneditor-react
jsoneditor-react copied to clipboard
Providing schema along with ajv instance in "tree" mode breaks the JsonEditor react component
trafficstars
I was trying to test out the validation in "tree" mode of JsonEditor react, as per the example below:
CodeSandbox:
https://codesandbox.io/p/sandbox/confident-currying-l2v2ht?file=%2Fsrc%2FApp.js%3A16%2C23
It gave the below error in console.
TypeError: Cannot read properties of undefined (reading '0')
The root.findNode(error.dataPath) invocation passes error.dataPath as undefined.