From 2cbf49a5e6398c946e7110ea27ccbcff38c191d3 Mon Sep 17 00:00:00 2001 From: "aditya.chandel" <> Date: Mon, 13 Jan 2025 11:16:42 -0700 Subject: [PATCH] Deselect book on route change --- .../book-browser/book-browser.component.ts | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/booklore-ui/src/app/book/components/book-browser/book-browser.component.ts b/booklore-ui/src/app/book/components/book-browser/book-browser.component.ts index 44f9d32fa..38e553467 100644 --- a/booklore-ui/src/app/book/components/book-browser/book-browser.component.ts +++ b/booklore-ui/src/app/book/components/book-browser/book-browser.component.ts @@ -41,21 +41,7 @@ export enum EntityType { standalone: true, templateUrl: './book-browser.component.html', styleUrls: ['./book-browser.component.scss'], - imports: [ - Button, - NgIf, - VirtualScrollerModule, - BookCardComponent, - AsyncPipe, - ProgressSpinner, - Select, - RadioButton, - Menu, - NgForOf, - InputText, - FormsModule, - BookTableComponent - ], + imports: [Button, NgIf, VirtualScrollerModule, BookCardComponent, AsyncPipe, ProgressSpinner, Select, RadioButton, Menu, NgForOf, InputText, FormsModule, BookTableComponent], animations: [ trigger('slideInOut', [ state('void', style({ @@ -140,6 +126,7 @@ export class BookBrowserComponent implements OnInit { this.activatedRoute.paramMap.subscribe(() => { this.bookTitle$.next(''); this.bookTitle = ''; + this.deselectAllBooks(); }); }