mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 03:16:10 -06:00 
			
		
		
		
	Merge pull request #2543 from paperless-ngx/feature-improved-title-debounce
Fix: Try to prevent title debounce overwriting
This commit is contained in:
		@@ -204,6 +204,10 @@ export class DocumentDetailComponent
 | 
			
		||||
            )
 | 
			
		||||
            .subscribe({
 | 
			
		||||
              next: (titleValue) => {
 | 
			
		||||
                // In the rare case when the field changed just after debounced event was fired.
 | 
			
		||||
                // We dont want to overwrite whats actually in the text field, so just return
 | 
			
		||||
                if (titleValue !== this.titleInput.value) return
 | 
			
		||||
 | 
			
		||||
                this.title = titleValue
 | 
			
		||||
                this.documentForm.patchValue({ title: titleValue })
 | 
			
		||||
              },
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user