diff --git a/component/customdropdown/customdropdown.templ b/component/customdropdown/customdropdown.templ index ab0e67b..374b9ba 100644 --- a/component/customdropdown/customdropdown.templ +++ b/component/customdropdown/customdropdown.templ @@ -1,28 +1,16 @@ package customdropdown; -templ MainCustomDropdown(label string, name string, id string, hxTarget string, hxGet string, hxIndicator string, listItem templ.Component) { -
- - - @listItem - -
-} - -templ MainCustomDropdownV2(label string, name string, id string, listItem templ.Component) { -
- - diff --git a/component/customdropdown/customdropdown_templ.go b/component/customdropdown/customdropdown_templ.go index 71d5d52..4f0119d 100644 --- a/component/customdropdown/customdropdown_templ.go +++ b/component/customdropdown/customdropdown_templ.go @@ -10,7 +10,7 @@ import "context" import "io" import "bytes" -func MainCustomDropdown(label string, name string, id string, hxTarget string, hxGet string, hxIndicator string, listItem templ.Component) templ.Component { +func MainCustomDropdown(name string, id string, hxTarget string, hxGet string, hxIndicator string, hxTrigger string, hxInclude string, listItem templ.Component) templ.Component { return templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) { templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templ_7745c5c3_W.(*bytes.Buffer) if !templ_7745c5c3_IsBuffer { @@ -23,42 +23,29 @@ func MainCustomDropdown(label string, name string, id string, hxTarget string, h templ_7745c5c3_Var1 = templ.NopComponent } ctx = templ.ClearChildren(ctx) - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("