mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-23 10:58:26 +00:00
Make dropdowns searchable by default and improve open/close clicks
Ref #207
This commit is contained in:
@ -14,7 +14,7 @@ makeDropdownModel : Comp.Dropdown.Model Tag
|
||||
makeDropdownModel =
|
||||
Comp.Dropdown.makeModel
|
||||
{ multiple = True
|
||||
, searchable = \n -> n > 5
|
||||
, searchable = \n -> n > 0
|
||||
, makeOption = \tag -> { value = tag.id, text = tag.name, additional = "" }
|
||||
, labelColor =
|
||||
\tag ->
|
||||
@ -28,7 +28,7 @@ makeCatDropdownModel : Comp.Dropdown.Model String
|
||||
makeCatDropdownModel =
|
||||
Comp.Dropdown.makeModel
|
||||
{ multiple = True
|
||||
, searchable = \n -> n > 5
|
||||
, searchable = \n -> n > 0
|
||||
, makeOption = \cat -> { value = cat, text = cat, additional = "" }
|
||||
, labelColor = \_ -> \_ -> ""
|
||||
, placeholder = "Choose a tag category…"
|
||||
|
Reference in New Issue
Block a user