Skip to content

Commit 1ed8127

Browse files
committed
SVY-20565 Multiselect with number returned in dataproviders
1 parent 6da51e3 commit 1ed8127

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

components/projects/bootstrapcomponents/src/choicegroup/choicegroup.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,10 @@ export class ServoyBootstrapChoicegroup extends ServoyBootstrapBasefield<HTMLDiv
8484
let returnValue = [];
8585
this.selection.forEach((element, index) => {
8686
if (element === true)
87-
returnValue.push(this.valuelistID[index + this.allowNullinc].realValue);
87+
returnValue.push(this.valuelistID[index + this.allowNullinc].realValue +'');
8888
});
89-
if (!returnValue.length) returnValue = null;
89+
if (!returnValue.length) returnValue = null;
90+
else if (!this.allowMultiselect) returnValue = returnValue[0];
9091
return returnValue;
9192
}
9293

0 commit comments

Comments
 (0)