jsoneditor-react icon indicating copy to clipboard operation
jsoneditor-react copied to clipboard

Providing schema along with ajv instance in "tree" mode breaks the JsonEditor react component

Open UtkarshChugh1998 opened this issue 5 months ago • 0 comments
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.

Image

UtkarshChugh1998 avatar May 23 '25 13:05 UtkarshChugh1998