mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 10:28:27 +00:00
Fix bug in dropdown
The menu for a multi-dropdown should only show entries that are not already selected (there is no use case to select the same item more than once).
This commit is contained in:
@ -276,6 +276,7 @@ saveTags flags model =
|
||||
let
|
||||
tags =
|
||||
Comp.Dropdown.getSelected model.tagModel
|
||||
|> Util.List.distinct
|
||||
|> List.map (\t -> IdName t.id t.name)
|
||||
|> ReferenceList
|
||||
in
|
||||
|
Reference in New Issue
Block a user