Skip to content
Snippets Groups Projects
Commit a384ac4e authored by Quentin Torck's avatar Quentin Torck
Browse files

fixe multi select

parent adbd3e56
No related branches found
No related tags found
1 merge request!157Manage shortcuts
<form [formGroup]="form"
[dlcmAutoScrollIntoView]="!navigationResId"
(keydown.tab)="closeByTab()"
(keydown.enter)="select(getFocusedResource)"
(keydown.shift.tab)="closeByTab()">
<div class="input">
<mat-form-field class="form-field">
......
......@@ -16,6 +16,7 @@ import {
} from "rxjs";
import {
BaseResourceType,
isNotNullNorUndefined,
ObservableUtil,
ResourceStateModel,
} from "solidify-frontend";
......@@ -44,11 +45,13 @@ export class SharedSearchableMultiSelectContentPresentational<TResource extends
}
select(value: TResource): void {
if (this.isActive(value)) {
this._valueRemovedBS.next(value);
return;
if (isNotNullNorUndefined(value)) {
if (this.isActive(value)) {
this._valueRemovedBS.next(value);
return;
}
this._valueAddedBS.next(value);
}
this._valueAddedBS.next(value);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment