react-json-editor-ajrm
react-json-editor-ajrm copied to clipboard
Pasted JSON throws error in Chrome
-
What version of RJEA are you using (react-json-editor-ajrm version)? 2.5.13
-
What operating system and processor architecture are you using? Windows 10 + cloud codesandbox
-
What did you do? Insert valid JSON in the editor in Chrome browser
{ "test": "test" }
-
What did you expect to see? Expect to see parsed JSON without errors
-
What did you see instead? See error "Non-alphanumeric token '' is not allowed outside string notation at line 1". Error is shown only in Chrome (Firefox works well) and only on paste event. I found that after paste event Firefox has
in childNodes and Chrome doesn't.
More info on this in: https://github.com/AndrewRedican/react-json-editor-ajrm/issues/149
I made a PR today to fix this issue: https://github.com/AndrewRedican/react-json-editor-ajrm/pull/193
Waiting for someone who can approve it.