Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [Unreleased]

### Fixed

- Fixed an issue with Association selection happening when reference set contains objects not present in Selectable objects list.
- Fixed an issue with long labels not displaying correctly.

## [1.1.0] - 2025-10-18

### Added
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,28 @@ export class AssociationMultiSelector
}

setValue(value: string[] | null): void {
const newValue = value?.map(v => this.options._optionToValue(v)!);
this._attr?.setValue(newValue);
if (value && this._attr) {
const currentValue = this._attr.value ?? [];
const newValue = value
?.map(v => {
const knownObject = this.options._optionToValue(v);
if (knownObject) {
return knownObject;
}

// this option is not know, we need to look for it in the current value
const hiddenObject = currentValue.find(o => o.id === v);
if (hiddenObject) {
return hiddenObject;
}
console.info(`Object with ID ${v} not found. This value will be omitted.`);

return null;
})
.filter(v => !!v);
this._attr.setValue(newValue);
}

super.setValue(value);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
.widget-checkbox-radio-selection {
display: block;
position: relative;
min-width: 0;

&-readonly {
&.widget-checkbox-radio-selection-readonly-text {
Expand All @@ -25,13 +26,17 @@
}

&-item {
display: flex;
align-items: center;
input {
vertical-align: middle;
flex: 0 0 16px;
}
}

label {
font-weight: inherit;
label {
font-weight: inherit;
text-overflow: ellipsis;
overflow: hidden;
}
}

input[type="radio"],
Expand Down
Loading