mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-04-05 02:49:32 +00:00
Fix select e-mail from suggestions
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
This commit is contained in:
parent
7d6e2d8459
commit
d58bf80c46
@ -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"
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user