diff options
author | Yorhel <git@yorhel.nl> | 2020-11-21 14:56:32 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2020-11-21 14:56:35 +0100 |
commit | 64a76bb91206726fae76e368b0b36447c0665003 (patch) | |
tree | 26c9785b19beffba1c56dcf2f7bd8a84c9ff55fa | |
parent | 7761b70d7c387a7903d8bda12260bd07643d2ca3 (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.
-rw-r--r-- | elm/Lib/Autocomplete.elm | 2 |
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)] ] [] ] |