();
+ handleToggleClick(event: MouseEvent): void {
+ event.stopPropagation();
+ this.toggle.emit(event);
+ }
}
diff --git a/webapp/src/app/shared/ui/dfg-project-table/dfg-project-table.component.html b/webapp/src/app/shared/ui/dfg-project-table/dfg-project-table.component.html
index 0fb0cdf6..22445463 100644
--- a/webapp/src/app/shared/ui/dfg-project-table/dfg-project-table.component.html
+++ b/webapp/src/app/shared/ui/dfg-project-table/dfg-project-table.component.html
@@ -37,10 +37,7 @@
@let isClassificationsExpanded = isProjectClassificationsExpanded(project);
@let visibleClassifications =
isClassificationsExpanded ? classifications : classifications.slice(0, 3);
-
diff --git a/webapp/src/app/shared/ui/eu-project-table/eu-project-table.component.ts b/webapp/src/app/shared/ui/eu-project-table/eu-project-table.component.ts
index 26c5660b..9f9e2945 100644
--- a/webapp/src/app/shared/ui/eu-project-table/eu-project-table.component.ts
+++ b/webapp/src/app/shared/ui/eu-project-table/eu-project-table.component.ts
@@ -207,7 +207,8 @@ export class EuProjectTableComponent {
isTypeActive(type: string): boolean {
return this.selectedTypesQueryParams().includes(type);
}
- toggleTypeFilter(type: string): void {
+ toggleTypeFilter(event: Event, type: string): void {
+ event.stopPropagation();
const selectedTypes = this.selectedTypesQueryParams();
if (selectedTypes.includes(type)) {
this.router.navigate([], {
@@ -427,7 +428,11 @@ export class EuProjectTableComponent {
return `Organisation: ${name}`;
}
- filterByOrganization(organization: EuCordisOrganizationSummary | any): void {
+ filterByOrganization(
+ event: Event,
+ organization: EuCordisOrganizationSummary | any,
+ ): void {
+ event.stopPropagation();
const organizationId = this.getOrganizationId(organization);
if (!organizationId || !this.institutionFilterEnabled()) return;
@@ -452,7 +457,11 @@ export class EuProjectTableComponent {
return this.expandedProjectOrganizationsIds.includes(projectId);
}
- toggleProjectOrganizationsExpansion(project: EuCordisProjectSummary): void {
+ toggleProjectOrganizationsExpansion(
+ event: Event,
+ project: EuCordisProjectSummary,
+ ): void {
+ event.stopPropagation();
const projectId = this.getProjectId(project);
if (!projectId) return;
@@ -523,7 +532,11 @@ export class EuProjectTableComponent {
return this.expandedProjectTopicsIds.includes(projectId);
}
- toggleProjectTopicsExpansion(project: EuCordisProjectSummary): void {
+ toggleProjectTopicsExpansion(
+ event: Event,
+ project: EuCordisProjectSummary,
+ ): void {
+ event.stopPropagation();
const projectId = this.getProjectId(project);
if (!projectId) return;