We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8c4145 commit 18e5b1bCopy full SHA for 18e5b1b
src/components/value-decorators/Json.tsx
@@ -9,7 +9,7 @@ const Json = memo(({ obj, lines }: JsonProps) => {
9
const jsonState = JSON.stringify(obj, null, 4);
10
const computedLines = lines ?? Math.max(10, (jsonState.match(/\n/g) || "").length + 1);
11
12
- return <textarea className="textarea w-full" readOnly rows={computedLines} defaultValue={jsonState} />;
+ return <textarea className="textarea w-full" readOnly rows={computedLines} value={jsonState} />;
13
});
14
15
export default Json;
0 commit comments