diff options
| author | Danilo M. <danix@danix.xyz> | 2026-04-20 14:10:58 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-04-20 14:10:58 +0200 |
| commit | 2be9dd40a099542c73b2f0fa5d683a44883be9b9 (patch) | |
| tree | 3fdead9e8d86f8f7cb0d1a3e699e612ba9b12e5c /themes/danix-xyz-hacker | |
| parent | b78c8bf241f8189e70097589fef5bf4244de88f9 (diff) | |
| download | danixxyz-2be9dd40a099542c73b2f0fa5d683a44883be9b9.tar.gz danixxyz-2be9dd40a099542c73b2f0fa5d683a44883be9b9.zip | |
fix: add x-data directive to search button for Alpine.js binding
Search icon button was missing x-data attribute, preventing Alpine.js from processing @click directive. Added minimal x-data to enable event dispatching.
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Diffstat (limited to 'themes/danix-xyz-hacker')
| -rw-r--r-- | themes/danix-xyz-hacker/layouts/partials/header.html | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/themes/danix-xyz-hacker/layouts/partials/header.html b/themes/danix-xyz-hacker/layouts/partials/header.html index 63151ba..739c776 100644 --- a/themes/danix-xyz-hacker/layouts/partials/header.html +++ b/themes/danix-xyz-hacker/layouts/partials/header.html @@ -23,6 +23,7 @@ <div class="flex items-center gap-4 md:gap-6"> <!-- Search button (desktop only) --> <button + x-data @click="$dispatch('open-search')" aria-label="{{ i18n "searchArticles" }}" class="hidden md:flex p-2 rounded hover:bg-surface transition-colors focus:outline-none focus:ring-2 focus:ring-accent" |
