Closed cburschka closed 7 years ago
It turns out that jQuery really doesn't like setting the selected
attribute of options.
select
deselects all other options unless the select
element is already set to multiple
.As a result, it is better to combine list-single and list-multi constructors in a single function that does both.
The list-multi field constructor in ui.dataForm uses the list-single constructor, and lets it handle the field's default values. That only works if there is at most one default value.