react-json-view icon indicating copy to clipboard operation
react-json-view copied to clipboard

Returning false in onDelete changes .updated_src in v1.21.3

Open busterbogheart opened this issue 3 years ago • 3 comments

Despite the documentation, returning false does alter the internal state of the module and changes updated_src. I've set up a simple demo here: https://codesandbox.io/s/naughty-ganguly-l2zr38?file=/src/App.js

This causes, at least: when being blocked from deleting a key, and then successfully removing a different one, both rows disappear.

busterbogheart avatar Feb 24 '22 17:02 busterbogheart

Same happens with onEdit

esankin avatar May 12 '22 14:05 esankin

Running into the same issue.

lyleaigbedion avatar Oct 19 '22 15:10 lyleaigbedion