fix: nav Alpine event name — use htmx:after-settle, not after-settle

This commit is contained in:
swanadiva
2026-07-07 15:39:10 +07:00
parent cdc8b3afd0
commit 3df8416d9b
+1 -1
View File
@@ -1,6 +1,6 @@
{{define "nav"}}
<nav class="w-[260px] min-h-screen bg-white/70 backdrop-blur-md border-r border-outline-variant/30 flex flex-col shrink-0"
x-data="{ page: '{{.View}}' }" @after-settle.window="page = location.pathname.slice(1) || 'hosts'">
x-data="{ page: '{{.View}}' }" @htmx:after-settle.window="page = location.pathname.slice(1) || 'hosts'">
<div class="p-3 border-b border-outline-variant/20">
<div class="flex items-center gap-2">
<div class="w-8 h-8 rounded-lg bg-primary flex items-center justify-center text-white text-sm font-bold">K</div>