Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Fix: fix single select in filterable dropdowns when editing (#9834)

shamoon1b3a91f63fa8
diff --git a/src-ui/src/app/components/common/filterable-dropdown/filterable-dropdown.component.ts b/src-ui/src/app/components/common/filterable-dropdown/filterable-dropdown.component.ts
index 45c776df6..4af3d6d9c 100644
--- a/src-ui/src/app/components/common/filterable-dropdown/filterable-dropdown.component.ts
+++ b/src-ui/src/app/components/common/filterable-dropdown/filterable-dropdown.component.ts
@@ -586,6 +586,8 @@ export class FilterableDropdownComponent
this.selectionModel.reset()
this.modelIsDirty = false
}
+ this.selectionModel.singleSelect =
+ this.editing && !this.selectionModel.manyToOne
this.opened.next(this)
} else {
if (this.creating) {