Skip to content

Commit

Permalink
Fix select e-mail from suggestions
Browse files Browse the repository at this point in the history
The blur event messed up when clicking on a suggestion. Now it only is
used when the user has typed in an e-mail not in the suggestion list.

Fixes: #1565
  • Loading branch information
eikek committed Jun 4, 2022
1 parent 7d6e2d8 commit d58bf80
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/webapp/src/main/elm/Comp/EmailInput.elm
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,11 @@ view2 cfg values model =
, placeholder cfg.placeholder
, onKeyUp KeyPress
, onInput SetInput
, onBlur (KeyPress 13)
, if List.isEmpty model.candidates then
onBlur (KeyPress 13)

else
class ""
, class "inline-flex w-24 border-0 px-0 focus:ring-0 h-6 text-sm"
, class "placeholder-gray-400 dark:text-slate-200 dark:bg-slate-800 dark:border-slate-500"
]
Expand Down

0 comments on commit d58bf80

Please sign in to comment.