Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
fix: readonly codemirror fields don't trigger IMEs
Andrew Bastinf027d2dd2353
diff --git a/packages/hoppscotch-app/helpers/editor/codemirror.ts b/packages/hoppscotch-app/helpers/editor/codemirror.tsindex 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 ?? "")