Skip to content

Commit

Permalink
fix(JsonEditor): prevent user from changing the value of a disabled e…
Browse files Browse the repository at this point in the history
…ditor
  • Loading branch information
stephenlago99 committed Feb 6, 2025
1 parent 2d4830c commit 1d2efc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/form/JsonEditor/JsonEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ export const JsonEditor = ({
showLineNumbers: true,
tabSize: 2,
showPrintMargin: false,
readOnly: readOnly || readOnlyWithoutStyles,
readOnly: readOnly || readOnlyWithoutStyles || disabled,
}}
/>
</div>
Expand Down

0 comments on commit 1d2efc8

Please sign in to comment.