Skip to content

Commit

Permalink
IBX-5981: Fixed handling multiple custom classes
Browse files Browse the repository at this point in the history
  • Loading branch information
dew326 committed Jun 22, 2023
1 parent 90725a3 commit e5e9df1
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,8 @@ class IbexaCustomAttributesFormView extends View {
addListToDropdown(labeledDropdown.fieldView, itemsList);

this.listenTo(labeledDropdown.fieldView, 'execute', (event) => {
const value = config.multiple
? [...new Set([...labeledDropdown.fieldView.element.value.split(','), event.source.value])].join(',')
: event.source.value;
const alreadySelectedValues = labeledDropdown.fieldView.element.value ? labeledDropdown.fieldView.element.value.split(',') : [];
const value = config.multiple ? [...new Set([...alreadySelectedValues, event.source.value])].join(',') : event.source.value;

labeledDropdown.fieldView.buttonView.set({
label: value,
Expand Down

0 comments on commit e5e9df1

Please sign in to comment.