Description
Before you start, please make sure to:
- Read the doc
- Have tried the latest version
- Search to see if your issue already exists
- Look for / ask questions on Stack Overflow
Link to minimal reproduction
Steps to reproduce
Step 1.: edit the value "1" to "2" in the JSON editor and hit Enter (or click outside to validate the edit).
Step 2.: edit the value "2" to "3" in the JSON editor and hit Enter (or click outside to validate the edit).
What is expected?
After step 1., "Value in JSON:" should be "2".
After step 2., "Value in JSON:" should be "3".
What is actually happening?
After step 1., "Value in JSON:" is still "1". <= this is incorrect
After step 2., "Value in JSON:" is "3". <= this is OK
So in short, the first edit is not propagated to the reactive variable containing the JSON data. After the second edit, the propagation is restored.
System Info
Tested on latest versions of Firefox and Chrome, on macOS Ventura 13.6.1.
Package Manager
None
Any additional comments?
If I set the value of the JSON editor synchronously this behavior doesn't happen.
This only happens when the value is set asynchronously (simulated in the repro with the setTimeout).