mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Fix reverting old selection in all cases by always doing it
This commit is contained in:
		| @@ -266,10 +266,8 @@ export class DocumentListViewService { | ||||
|       const fromIndex = Math.min(this.rangeSelectionAnchorIndex, documentToIndex) | ||||
|       const toIndex = Math.max(this.rangeSelectionAnchorIndex, documentToIndex) | ||||
|  | ||||
|       if (this.lastRangeSelectionToIndex !== null && | ||||
|           ((this.lastRangeSelectionToIndex > this.rangeSelectionAnchorIndex && documentToIndex <= this.rangeSelectionAnchorIndex) || | ||||
|           (this.lastRangeSelectionToIndex < this.rangeSelectionAnchorIndex && documentToIndex >= this.rangeSelectionAnchorIndex))) { | ||||
|         // new click is "opposite side" of anchor so we invert the old selection | ||||
|       if (this.lastRangeSelectionToIndex !== null) { | ||||
|         // revert the old selection | ||||
|         this.documents.slice(Math.min(this.rangeSelectionAnchorIndex, this.lastRangeSelectionToIndex), Math.max(this.rangeSelectionAnchorIndex, this.lastRangeSelectionToIndex) + 1).forEach(d => { | ||||
|           this.selected.delete(d.id) | ||||
|         }) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Michael Shamoon
					Michael Shamoon