fix
This commit is contained in:
@@ -10,7 +10,8 @@ const bundlePath = `${import.meta.env.BASE_URL}pagefind/`;
|
||||
name="magnifying-glass"
|
||||
class="absolute size-5 top-1/2 -translate-y-1/2 left-3"
|
||||
/>
|
||||
<div id="pagefind-ui" class="w-full" data-bundle-path={bundlePath}></div>
|
||||
<div id="pagefind-ui" class="pagefind-init" data-bundle-path={bundlePath}>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
@@ -31,10 +32,15 @@ const bundlePath = `${import.meta.env.BASE_URL}pagefind/`;
|
||||
showImages: false,
|
||||
pageSize: 5,
|
||||
});
|
||||
|
||||
const a =
|
||||
selector.querySelector<HTMLInputElement>(`input[type="text"]`);
|
||||
console.log(a);
|
||||
}
|
||||
}
|
||||
|
||||
window.addEventListener("astro:page-load", initPagefindUI);
|
||||
|
||||
if (document.readyState === "loading") {
|
||||
document.addEventListener("DOMContentLoaded", initPagefindUI);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user