lowcoder-org / lowcoder

🔥 🔥 🔥 The Open Source Retool, Tooljet and Appsmith Alternative
https://www.lowcoder.cloud/
GNU Affero General Public License v3.0
895 stars 187 forks source link

[Bug]: JSON Editor component resets its contents, moves cursor to beginning #1223

Open phil-pdx opened 1 month ago

phil-pdx commented 1 month ago

Is there an existing issue for this?

Current Behavior

See below video. Clicking anywhere in the component to edit JSON results in the cursor returning to start. Making an edit will result in the edit being cleared.

https://github.com/user-attachments/assets/2f7c4852-db2b-4081-a7a3-da11ba3fde1e

Expected Behavior

JSON should be editable

Steps to reproduce

Place a JSON Editor component, default JSON is fine. Click in the component to edit the JSON.

Environment

Tested on 2.4.6, 2.4.7 and cloud. Edge, Chrome, Firefox (all latest). This bug doesn't happen in an older project that's still on 2.4.0

Additional Information

No response

sonuame commented 2 weeks ago

happening with me as well