Skip to content

Commit

Permalink
fix(theme-celesta): avoid use teleport
Browse files Browse the repository at this point in the history
this is a bug, related: [#127](vuepress/core#127)
  • Loading branch information
yzx9 committed Jun 2, 2021
1 parent 571709e commit 72fc7a3
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions packages/theme-celesta/src/client/layouts/BaseLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,26 +22,17 @@
</slot>
</footer>

<teleport to="body">
<nav class="overflow-hidden z-50">
<slot name="nav">
<Navbar />
</slot>
</nav>
</teleport>
<nav class="overflow-hidden z-50">
<slot name="nav">
<Navbar />
</slot>
</nav>
</div>
</template>

<script lang="ts">
<script setup lang="ts">
import Navbar from "../components/Navbar.vue"
import Footer from "../components/Footer.vue"
export default {
components: {
Navbar,
Footer,
},
}
</script>

<style lang="postcss">
Expand Down

0 comments on commit 72fc7a3

Please sign in to comment.