Skip to content

Commit

Permalink
fix(PathsSummary): allows to navigate to Operations with {} chars (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
enzonotario authored Nov 6, 2024
1 parent 238d4fe commit 7ff03ae
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/Path/OAPathsByTags.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,11 @@ const internalTags = ref([
function scrollIntoViewWithOffset(hash, offset) {
if (!import.meta.env.SSR) {
const element = document.querySelector(hash)
const element = document.querySelector(
hash
// . escape { and } characters
.replace(/([{}])/g, '\\$1'),
)
if (!element) {
return
Expand Down

0 comments on commit 7ff03ae

Please sign in to comment.