Fix menu showing when request not made

This commit is contained in:
Tom Nunn 2022-06-28 16:56:15 +02:00
parent 1af3d6a49d
commit e22c65a4a8

View File

@ -214,19 +214,16 @@ updateEffectInternal maybeRequest toMsg msg (Select state) =
else
state.requestState
}
, Effect.batch
[ Effect.GetContainerAndMenuElements (GotContainerAndMenuElements >> toMsg) state.id
, case maybeRequest of
Just req ->
if String.length val >= Request.toMinLength req then
Effect.Debounce (Request.toDelay req) (InputDebounceReturned val |> toMsg)
, case maybeRequest of
Just req ->
if String.length val >= Request.toMinLength req then
Effect.Debounce (Request.toDelay req) (InputDebounceReturned val |> toMsg)
else
Effect.none
Nothing ->
else
Effect.none
]
Nothing ->
Effect.GetContainerAndMenuElements (GotContainerAndMenuElements >> toMsg) state.id
)
OptionClicked ( a, s ) ->