mirror of
https://github.com/nunntom/elm-ui-select.git
synced 2024-11-23 05:22:34 +03:00
Fix menu showing when request not made
This commit is contained in:
parent
1af3d6a49d
commit
e22c65a4a8
@ -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 ) ->
|
||||
|
Loading…
Reference in New Issue
Block a user