From 9b60202d880437a6b137dfc6e1e5b6f6ddb5a314 Mon Sep 17 00:00:00 2001 From: Szymon Fiedler Date: Tue, 2 Apr 2024 15:02:39 +0200 Subject: [PATCH] Close modal after clicking on stream from dropdown --- ruby_event_store-browser/elm/src/Search.elm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ruby_event_store-browser/elm/src/Search.elm b/ruby_event_store-browser/elm/src/Search.elm index 42ff44f97d..943ec6591f 100644 --- a/ruby_event_store-browser/elm/src/Search.elm +++ b/ruby_event_store-browser/elm/src/Search.elm @@ -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 @@ -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 ] ]