Make dropdowns searchable by default and improve open/close clicks

Ref #207
This commit is contained in:
Eike Kettner
2020-08-14 23:02:21 +02:00
parent 61f76acdca
commit fde52bbbb0
3 changed files with 24 additions and 10 deletions

View File

@ -89,7 +89,7 @@ init =
, orgModel =
Comp.Dropdown.makeModel
{ multiple = False
, searchable = \n -> n > 5
, searchable = \n -> n > 0
, makeOption = \e -> { value = e.id, text = e.name, additional = "" }
, labelColor = \_ -> \_ -> ""
, placeholder = "Choose an organization"
@ -107,7 +107,7 @@ init =
, concEquipmentModel =
Comp.Dropdown.makeModel
{ multiple = False
, searchable = \n -> n > 5
, searchable = \n -> n > 0
, makeOption = \e -> { value = e.id, text = e.name, additional = "" }
, labelColor = \_ -> \_ -> ""
, placeholder = "Choose an equipment"