Skip to content

Commit

Permalink
fix(site): collapse failed on docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tchiotludo committed Sep 15, 2023
1 parent 18c0075 commit 4efe442
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 21 deletions.
16 changes: 0 additions & 16 deletions assets/app.js

This file was deleted.

10 changes: 5 additions & 5 deletions components/docs/RecursiveNavSidebar.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div
:id="parentSlug"
:data-bs-parent="'#'+parentSlug"
:id="parentSlug.replaceAll('/', '_')"
:data-bs-parent="'#'+parentSlug.replaceAll('/', '_')"
class="accordion-collapse"
:class="activeSlug.includes(parentSlug) ? 'collapse show' : 'collapse'"
>
Expand Down Expand Up @@ -31,7 +31,7 @@
:class="getClass(item, depthLevel, true)"
class="disabled"
@click="toggle(item._path, isPage(item))" data-bs-toggle="collapse"
:data-bs-target="'#'+item._path"
:data-bs-target="'#'+item._path.replaceAll('/', '_')"
>
{{ item.emoji }}
{{ item.title }}
Expand All @@ -41,14 +41,14 @@
v-if="isShow(item._path)"
@click="toggle(item._path)"
class="accordion-button" data-bs-toggle="collapse"
:data-bs-target="'#'+item._path"
:data-bs-target="'#'+item._path.replaceAll('/', '_')"
role="button"
/>
<chevron-down
v-else
@click="toggle(item._path)"
class="accordion-button" data-bs-toggle="collapse"
:data-bs-target="'#'+item._path"
:data-bs-target="'#'+item._path.replaceAll('/', '_')"
role="button"
/>
</template>
Expand Down

1 comment on commit 4efe442

@vercel
Copy link

@vercel vercel bot commented on 4efe442 Sep 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.