Skip to content

Commit

Permalink
fix: disable hide location on switching view
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed May 22, 2024
1 parent 579703f commit 0ddf2a7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions components/OutputContainer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ function toggleHideLocationData() {
autoFocus.value = false
}
}
watch(outputView, (view) => {
if (view === 'json' && autoFocus.value) {
hideLocationData.value = false
}
})
</script>

<template>
Expand Down

0 comments on commit 0ddf2a7

Please sign in to comment.