diff --git a/packages/hoppscotch-app/helpers/editor/codemirror.ts b/packages/hoppscotch-app/helpers/editor/codemirror.ts index 9f2b1a7ee..fd7b25c1d 100644 --- a/packages/hoppscotch-app/helpers/editor/codemirror.ts +++ b/packages/hoppscotch-app/helpers/editor/codemirror.ts @@ -225,6 +225,11 @@ export function useCodemirror( } } ), + EditorView.updateListener.of((update) => { + if (options.extendedEditorConfig.readOnly) { + update.view.contentDOM.inputMode = "none" + } + }), EditorState.changeFilter.of(() => !options.extendedEditorConfig.readOnly), placeholderConfig.of( placeholder(options.extendedEditorConfig.placeholder ?? "")