diff --git a/src/components/CommentForm.astro b/src/components/CommentForm.astro index 900a14e..bece347 100644 --- a/src/components/CommentForm.astro +++ b/src/components/CommentForm.astro @@ -26,7 +26,7 @@ const backendHost = import.meta.env.PUBLIC_BACKEND_HOST; hx-post=`${backendHost}/api/blog/comments` hx-target="#comments-container" hx-swap="afterbegin" - hx-on::after-request="document.getElementById('no-comments-text')?.remove();this.reset()"> + hx-on:htmx:after-request="document.getElementById('no-comments-text')?.remove();this.reset()">