Skip to content

Commit

Permalink
Close modal after clicking on stream from dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
fidel committed Apr 2, 2024
1 parent 7683c45 commit 9b60202
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ruby_event_store-browser/elm/src/Search.elm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module Search exposing (..)
import FeatherIcons
import Html exposing (..)
import Html.Attributes exposing (autofocus, class, href, placeholder, value)
import Html.Events exposing (onInput, onSubmit)
import Html.Events exposing (onInput, onSubmit, onClick)
import List
import Task

Expand Down Expand Up @@ -99,6 +99,7 @@ viewStreamListItem stream =
[ a
[ class "p-3 block rounded hover:bg-red-200 w-full bg-gray-100 break-words text-xs font-bold font-mono"
, href ("/streams/" ++ stream)
, onClick (GoToStream stream)
]
[ text stream ]
]
Expand Down

0 comments on commit 9b60202

Please sign in to comment.