From b383e7dd08148a6c2522d19978ba4b25cff06109 Mon Sep 17 00:00:00 2001 From: Michael Shamoon <4887959+shamoon@users.noreply.github.com> Date: Sat, 5 Mar 2022 20:09:44 -0800 Subject: [PATCH] Reduce debounce to avoid title erasing Closes #216 --- .../components/document-detail/document-detail.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 22c63ccc4..e751f59f8 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 @@ -94,10 +94,11 @@ export class DocumentDetailComponent implements OnInit, OnDestroy, DirtyComponen private toastService: ToastService, private settings: SettingsService) { this.titleSubject.pipe( - debounceTime(200), + debounceTime(1000), distinctUntilChanged(), takeUntil(this.unsubscribeNotifier) ).subscribe(titleValue => { + this.title = titleValue this.documentForm.patchValue({'title': titleValue}) }) }