summaryrefslogtreecommitdiff
path: root/elm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2020-11-21 14:56:32 +0100
committerYorhel <git@yorhel.nl>2020-11-21 14:56:35 +0100
commit64a76bb91206726fae76e368b0b36447c0665003 (patch)
tree26c9785b19beffba1c56dcf2f7bd8a84c9ff55fa /elm
parent7761b70d7c387a7903d8bda12260bd07643d2ca3 (diff)
elm/Autocomplete: Wrap search input in its own form
This prevents the input from being counted as part of the parent form element, which in turn prevents pointless "advsearch_" parameters from being included in the URL when submitting the advanced search form while an autompletion input is still open.
Diffstat (limited to 'elm')
-rw-r--r--elm/Lib/Autocomplete.elm2
1 files changed, 1 insertions, 1 deletions
diff --git a/elm/Lib/Autocomplete.elm b/elm/Lib/Autocomplete.elm
index ad7c4ae3..9b693e28 100644
--- a/elm/Lib/Autocomplete.elm
+++ b/elm/Lib/Autocomplete.elm
@@ -341,6 +341,6 @@ view cfg model attrs =
in div [ class "elm_dd", class "search", style "width" "300px" ]
[ div [ classList [("hidden", not visible)] ] [ div [] [ Keyed.node "ul" [] <| msg ++ List.map item model.results ] ]
- , input
+ , Html.form [] [ input ]
, span [ class "spinner", classList [("hidden", not model.loading)] ] []
]