From 9454a983da9033eb1d72efd5c8e3accd9ae797f5 Mon Sep 17 00:00:00 2001 From: Andrew Bastin Date: Fri, 31 Dec 2021 15:50:12 +0530 Subject: [PATCH] fix: snapping when user typing in bulk editor with empty lines in between --- packages/hoppscotch-app/components/http/Headers.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/hoppscotch-app/components/http/Headers.vue b/packages/hoppscotch-app/components/http/Headers.vue index 4ce0ac799..d2dd01a07 100644 --- a/packages/hoppscotch-app/components/http/Headers.vue +++ b/packages/hoppscotch-app/components/http/Headers.vue @@ -252,6 +252,9 @@ watch(bulkHeaders, () => { } }) watch(workingHeaders, (newHeadersList) => { + // If we are in bulk mode, don't apply direct changes + if (bulkMode.value) return + try { const currentBulkHeaders = bulkHeaders.value.split("\n").map((item) => ({ key: item.substring(0, item.indexOf(":")).trimLeft().replace(/^\/\//, ""),