Don't focus editor in readonly mode

This commit is contained in:
Luck
2026-04-02 20:08:42 +01:00
parent 60e4cbc4ed
commit 58c41719bc

View File

@@ -124,10 +124,14 @@ export default function EditorTextArea({
resetFunctionRef.current = () => {
editor.setValue('');
editor.focus();
if (!readOnly) {
editor.focus();
}
};
editor.focus();
if (!readOnly) {
editor.focus();
}
};
const onChange: OnChange = useCallback(