react-json-view
react-json-view copied to clipboard
collapseStringsAfterLength prevents copy to clipboard
The collapseStringsAfterLength feature is preventing the ability to highlight and copy text out of rendered JSON.
To reproduce, use the demo (https://mac-s-g.github.io/react-json-view/demo/dist/) and try to copy "a test string" out of the first "string" key. As soon as you finish highlighting the text, it toggles the collapse feature and clears your selection.
I'm aware the "Copy to Clipboard" icon is available but this copies the whole value and it also copies with surrounding quotes, both of which aren't always desirable.