Skip to content

Commit

Permalink
fix: use id for list
Browse files Browse the repository at this point in the history
  • Loading branch information
katallaxie authored Aug 21, 2024
1 parent 986d18f commit b93bc22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/forms/datalist.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func Datalist(props DatalistProps) htmx.Node {
Placeholder: props.Placeholder,
Disabled: props.Disabled,
},
htmx.List(props.Name),
htmx.List(props.ID),
htmx.HxGet(props.URL),
htmx.HxTarget(fmt.Sprintf("#%s", props.ID)),
htmx.HxTrigger("load, keyup[checkUserKeydown.call(this, event)] changed delay:350ms"),
Expand Down

0 comments on commit b93bc22

Please sign in to comment.