Skip to content

Commit

Permalink
QA
Browse files Browse the repository at this point in the history
  • Loading branch information
dew326 committed Jun 28, 2023
1 parent 42293fd commit 4101ce1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class IbexaCustomAttributesCommand extends Command {
const hasOwnCustomClasses =
elementCustomClassesConfig &&
selectedCustomClasses
.split()
.split(' ')
.every((selectedCustomClass) => elementCustomClassesConfig.choices.includes(selectedCustomClass));

if (elementName === modelElement.name || hasOwnCustomClasses) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ class IbexaCustomAttributesFormView extends View {
addListToDropdown(labeledDropdown.fieldView, itemsList);

this.listenTo(labeledDropdown.fieldView, 'execute', (event) => {
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;
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
1 change: 1 addition & 0 deletions src/bundle/Resources/public/scss/_balloon-form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
.ck-button.ck-dropdown__button {
.ck-button__label {
width: calculateRem(198px);
display: inline-block;
}
}
}
Expand Down

0 comments on commit 4101ce1

Please sign in to comment.