ListField default size 2 only for multiSelect

Description

AbstractListField:73 defaults the list size to 2 if nothing is set in the builder. This causes problems in the ObjectEdit display. Instead of a dropdown the select is shown as a select with size 2 which makes selection cumbersome. Appart from maybe multiselect lists I don't see a reason to add a size by default.
--> move to ListField constructor as this.size = firstNonNull(builder.size, builder.multiSelect ? 2 : 1)

Attachments

1

Activity

Edoardo Beutler 17 April 2018 at 14:18

Marc Sladek 16 March 2018 at 17:07
Edited

you are right, when I set the default to 2 I only had multiSelect in mind, because size 1 is very annoying in that case. it makes it worse for singleSelect though. see:


see suggested solution in description

Fixed

Details

Priority

Assignee

Reporter

Story Points

Sprint

Fix versions

Affects versions

Clockify

Created 13 March 2018 at 14:48
Updated 18 April 2018 at 15:35
Resolved 17 April 2018 at 14:17