CarlosNZ / json-edit-react

React component for editing/viewing JSON/object data
https://carlosnz.github.io/json-edit-react/
MIT License
183 stars 18 forks source link

#57 Long string fixes #60

Closed CarlosNZ closed 6 months ago

CarlosNZ commented 6 months ago

Fix #57

Also adds restriction so that only one element can be edited at a time (this makes it easier to handle the original problem).

The tricky thing was getting a parent collection to know when one of its children is being edited (so it can change its auto-height logic). So I've added the currently-editing element to a global state provider (it already tracks "Collapse" state).