We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2806a05 commit a7b4b6bCopy full SHA for a7b4b6b
1 file changed
lib/form-builder/src/components/form-builder.tsx
@@ -513,6 +513,12 @@ export class FormBuilder extends HElement<FormBuilderOptions> {
513
return [Picker as ComponentType, {
514
multiple,
515
}, (value) => {
516
+ if ((multiple && isArray)) {
517
+ if (!schema.required && !(value as string)?.length) {
518
+ return [];
519
+ }
520
+ return (value as string).split((schema.props as {valueSplitter?: string})?.valueSplitter ?? ',');
521
522
return (multiple && isArray) ? (value as string).split((schema.props as {valueSplitter?: string})?.valueSplitter ?? ',') : value;
523
}];
524
},
0 commit comments