From c08ca6e3e571409a9285ea2191128e383293ea12 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Wed, 27 Nov 2024 23:25:52 -0800 Subject: [PATCH] Fixhancement: dispatch change event from current field prior to save (#8369) --- .../app/components/document-detail/document-detail.component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src-ui/src/app/components/document-detail/document-detail.component.ts b/src-ui/src/app/components/document-detail/document-detail.component.ts index 9a9afadb8..6ea625651 100644 --- a/src-ui/src/app/components/document-detail/document-detail.component.ts +++ b/src-ui/src/app/components/document-detail/document-detail.component.ts @@ -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())