From a5d3e6e065097f70e11b2d99eab263784abe4c01 Mon Sep 17 00:00:00 2001 From: axzilla Date: Mon, 25 Nov 2024 15:59:26 +0700 Subject: [PATCH] hotfix: make datepicker work again --- pkg/components/datepicker.templ | 9 +++++- pkg/components/datepicker_templ.go | 49 +++++++++++++++++++----------- 2 files changed, 40 insertions(+), 18 deletions(-) diff --git a/pkg/components/datepicker.templ b/pkg/components/datepicker.templ index 234c75e..fb50823 100644 --- a/pkg/components/datepicker.templ +++ b/pkg/components/datepicker.templ @@ -27,6 +27,8 @@ type DatepickerProps struct { // Class adds custom CSS classes Class string + Value string + // Attributes for additional HTML attributes and Alpine.js bindings Attributes templ.Attributes } @@ -45,9 +47,10 @@ type DatepickerProps struct { templ Datepicker(props DatepickerProps) {