Skip to content

Commit

Permalink
fix: back to top link only works once
Browse files Browse the repository at this point in the history
closes #1001
  • Loading branch information
davidsneighbour committed Jun 17, 2024
1 parent da52ac8 commit f4c5827
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ <h3 class="fs-6 my-5 fw-bold text-uppercase">{{- lang.Translate "theme.connect-o
x-on:scroll.window="showBackToTop = window.pageYOffset >= 200"
class="scroll-to-top p-3 me-1 mb-1" x-show="showBackToTop"
x-transition.duration.500ms
x-on:click.once.prevent="window.scrollTo({top: 0, behavior: 'smooth'});">
x-on:click.prevent="window.scrollTo({top: 0, behavior: 'smooth'});">
<span class="me-2">
{{- partials.Include "icon.html" $icon -}}
</span>
Expand Down

0 comments on commit f4c5827

Please sign in to comment.