Skip to content

Commit

Permalink
fix: remove htmx.Group from datalist
Browse files Browse the repository at this point in the history
  • Loading branch information
katallaxie authored Aug 21, 2024
1 parent f9d1a3e commit 98d1038
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions components/forms/datalist.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type DatalistProps struct {
}

// Datalist is a component that displays a datalist.
func Datalist(props DatalistProps, children ...htmx.Node) htmx.Node {
func Datalist(props DatalistProps) htmx.Node {
return htmx.Fragment(
htmx.Script(htmx.Raw(`function checkUserKeydown(event) {return event instanceof KeyboardEvent}`)),
TextInputBordered(
Expand All @@ -45,6 +45,5 @@ func Datalist(props DatalistProps, children ...htmx.Node) htmx.Node {
htmx.DataList(
htmx.ID(props.ID),
),
htmx.Group(children...),
)
}

0 comments on commit 98d1038

Please sign in to comment.