]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Fix: fix single select in filterable dropdowns when editing (#9834)
authorshamoon <4887959+shamoon@users.noreply.github.com>
Wed, 30 Apr 2025 08:48:02 +0000 (01:48 -0700)
committerGitHub <noreply@github.com>
Wed, 30 Apr 2025 08:48:02 +0000 (01:48 -0700)
src-ui/src/app/components/common/filterable-dropdown/filterable-dropdown.component.ts

index 45c776df699149a8bd9415808ddd190eacc89748..4af3d6d9c3ce2ab6374a68f0b1c9ae65e93ee396 100644 (file)
@@ -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) {