From: Michael Shamoon <4887959+shamoon@users.noreply.github.com> Date: Sun, 6 Mar 2022 04:09:44 +0000 (-0800) Subject: Reduce debounce to avoid title erasing X-Git-Tag: ngx-1.6.0~3^2~2^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F219%2Fhead;p=thirdparty%2Fpaperless-ngx.git Reduce debounce to avoid title erasing Closes #216 --- 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 22c63ccc48..e751f59f88 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}) }) }