From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Wed, 30 Apr 2025 08:48:02 +0000 (-0700) Subject: Fix: fix single select in filterable dropdowns when editing (#9834) X-Git-Tag: v2.16.0~2^2~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b3a91f63fa8c8c320df3319370b380a8afeb3a2;p=thirdparty%2Fpaperless-ngx.git Fix: fix single select in filterable dropdowns when editing (#9834) --- 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) {