diff --git a/packages/hoppscotch-common/src/composables/codemirror.ts b/packages/hoppscotch-common/src/composables/codemirror.ts index 58f69e06a..8236a862a 100644 --- a/packages/hoppscotch-common/src/composables/codemirror.ts +++ b/packages/hoppscotch-common/src/composables/codemirror.ts @@ -243,7 +243,7 @@ export function useCodemirror( if (from === to) return const text = view.value?.state.doc.sliceString(from, to) const { top, left } = view.value?.coordsAtPos(from) - if (text) { + if (text && text.trim()) { invokeAction("contextmenu.open", { position: { top,