]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Fixhancement: dispatch change event from current field prior to save (#8369)
authorshamoon <4887959+shamoon@users.noreply.github.com>
Thu, 28 Nov 2024 07:25:52 +0000 (23:25 -0800)
committerGitHub <noreply@github.com>
Thu, 28 Nov 2024 07:25:52 +0000 (23:25 -0800)
src-ui/src/app/components/document-detail/document-detail.component.ts

index 9a9afadb8627863eae848414e3c5d0d5ff3d7e16..6ea62565103cd78ef0dd39ddc886ab1f2a07fb22 100644 (file)
@@ -721,6 +721,7 @@ export class DocumentDetailComponent
 
   save(close: boolean = false) {
     this.networkActive = true
+    ;(document.activeElement as HTMLElement)?.dispatchEvent(new Event('change'))
     this.documentsService
       .update(this.document)
       .pipe(first())