From 23a27be57ea8fdcac343d436b76b956280ffa17f Mon Sep 17 00:00:00 2001 From: Kyle Isom Date: Sun, 15 Mar 2026 08:31:40 -0700 Subject: [PATCH] Fix login card nesting on htmx failure - Add id="login-card" to the .card wrapper div - Change hx-target to #login-card (was #login-form) - Add hx-select="#login-card" so htmx extracts only the card element from the full-page response Without hx-select, htmx replaced the form's outerHTML with the entire page response, inserting a new .card inside the existing .card on every failed attempt. Co-Authored-By: Claude Sonnet 4.6 --- web/templates/login.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/templates/login.html b/web/templates/login.html index 8e59dfb..b2ca4d4 100644 --- a/web/templates/login.html +++ b/web/templates/login.html @@ -11,10 +11,10 @@