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(common): correct coordinates calculation for selection end position (#4826)
Anwarul Islamf63474cd0658
diff --git a/packages/hoppscotch-common/src/composables/codemirror.ts b/packages/hoppscotch-common/src/composables/codemirror.tsindex 3cff1b1c3..a98ba4641 100644--- a/packages/hoppscotch-common/src/composables/codemirror.ts+++ b/packages/hoppscotch-common/src/composables/codemirror.ts@@ -279,7 +279,7 @@ export function useCodemirror(}const text = view.value?.state.doc.sliceString(from, to)- const coords = view.value?.coordsAtPos(from)+ const coords = view.value?.coordsAtPos(to)const top = coords?.top ?? 0const left = coords?.left ?? 0if (text?.trim()) {