We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60e4cbc commit 58c4171Copy full SHA for 58c4171
1 file changed
src/components/EditorTextArea.tsx
@@ -124,10 +124,14 @@ export default function EditorTextArea({
124
125
resetFunctionRef.current = () => {
126
editor.setValue('');
127
- editor.focus();
+ if (!readOnly) {
128
+ editor.focus();
129
+ }
130
};
131
132
133
134
135
136
137
const onChange: OnChange = useCallback(
0 commit comments