Skip to content

Commit 66b9105

Browse files
committed
Fix StickyHeader for <ViewTransitions/> #29
1 parent 83fd33f commit 66b9105

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "astro-navbar",
3-
"version": "2.3.7",
3+
"version": "2.3.8",
44
"description": "Responsive Mobile Navigation with Dropdown in Astro",
55
"type": "module",
66
"exports": "./index.ts",

src/components/StickyHeader.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const {
2020
<slot />
2121
</header>
2222

23-
<script define:vars={{ scrollY, defaultClass, activeClass }}>
23+
<script data-astro-rerun define:vars={{ scrollY, defaultClass, activeClass }}>
2424
// @ts-nocheck
2525
let lastKnownScrollPosition = 0;
2626
let ticking = false;

0 commit comments

Comments
 (0)