Skip to content

Commit c3bb72f

Browse files
committed
Support multiple initially selected values.
1 parent 55bf9bc commit c3bb72f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ui/widget/widget.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,8 @@ func RegisterAll() error {
244244
valid.StringValidator(1, 0, nil)),
245245
},
246246
"initiallySelected": {
247-
Validate: valid.StringValidator(1, 0, nil),
247+
Validate: valid.ListValidator(0, math.MaxInt,
248+
valid.StringValidator(1, 0, nil)),
248249
},
249250
},
250251
})
@@ -337,8 +338,7 @@ func RegisterAll() error {
337338
Validate: valid.ExactStringValidator("richText"),
338339
},
339340
"label": {
340-
Required: true,
341-
Validate: valid.StringValidator(1, 0, nil),
341+
Validate: valid.StringValidator(0, 0, nil),
342342
},
343343
"hint": {
344344
Validate: valid.StringValidator(1, 0, nil),

0 commit comments

Comments
 (0)