From 664cbca4b84916796590262d923beb7dcd62dfe7 Mon Sep 17 00:00:00 2001 From: Francis Secada Date: Wed, 4 Feb 2026 14:15:50 -0500 Subject: [PATCH] fix: replace Alpine.js button with anchor tag for PDF download Issue: PDF download button wasn't working because Alpine.js doesn't automatically initialize on dynamically loaded HTMX content. The result.html template is loaded via HTMX polling, and the x-data directive wasn't being processed on the new DOM elements. Solution: Replaced the Alpine.js-powered button with a simple anchor tag styled as a button. This works immediately without requiring Alpine initialization and properly triggers browser download behavior. Changes: - Removed x-data, @click, :disabled, :class Alpine directives - Changed + Download PDF Report +

Professional PDF report with full SWOT analysis