fix: snapping when user typing in bulk editor with empty lines in between
This commit is contained in:
@@ -252,6 +252,9 @@ watch(bulkHeaders, () => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
watch(workingHeaders, (newHeadersList) => {
|
watch(workingHeaders, (newHeadersList) => {
|
||||||
|
// If we are in bulk mode, don't apply direct changes
|
||||||
|
if (bulkMode.value) return
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const currentBulkHeaders = bulkHeaders.value.split("\n").map((item) => ({
|
const currentBulkHeaders = bulkHeaders.value.split("\n").map((item) => ({
|
||||||
key: item.substring(0, item.indexOf(":")).trimLeft().replace(/^\/\//, ""),
|
key: item.substring(0, item.indexOf(":")).trimLeft().replace(/^\/\//, ""),
|
||||||
|
|||||||
Reference in New Issue
Block a user