fix: snapping when user typing in bulk editor with empty lines in between

This commit is contained in:
Andrew Bastin
2021-12-31 15:50:12 +05:30
parent ca131697b6
commit 9454a983da

View File

@@ -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(/^\/\//, ""),