YYsuni / react18-json-view

JSON viewer for react18
https://jv.yysuni.com/
MIT License
236 stars 15 forks source link

setfold(false) on size of folded objects & arrays #17

Closed marcklingen closed 9 months ago

marcklingen commented 9 months ago

add setFold(false) to size of collapsed objects and arrays Screenshot 2023-09-26 at 15 29 05@2x

vercel[bot] commented 9 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
json-view ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 26, 2023 10:31pm
react18-json-view ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 26, 2023 10:31pm
YYsuni commented 9 months ago

Why do you think it is necessary to click on "size" to expand? I have noticed that other JSON viewers do not require clicking to expand this.

marcklingen commented 9 months ago

Currently there is a cursor:pointer style on the number of items which suggests that it’s clickable but it isn’t. I’d suggest to either remove the style or add the on click handler (this PR)

YYsuni commented 9 months ago

Oh, you are right, I missed it.