Skip to content

Commit

Permalink
Introduce an option to override display value delimiter fix #8265
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtelnov committed May 15, 2024
1 parent 6b997a6 commit bc6a35d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/question_baseselect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1156,7 +1156,7 @@ export class QuestionSelectBase extends Question {
}
}
}
return strs.join(", ");
return strs.join(settings.choicesSeparator);
}
private getItemDisplayValue(item: ItemValue, val?: any): string {
if (item === this.otherItem) {
Expand Down
1 change: 1 addition & 0 deletions src/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,7 @@ export var settings = {
dontKnowItem: [3],
otherItem: [4]
},
choicesSeparator: ", ",
/**
* A list of supported validators by question type.
*/
Expand Down

0 comments on commit bc6a35d

Please sign in to comment.