From c53ac892334c6e9be16b59a1e4149783a2b2b04b Mon Sep 17 00:00:00 2001 From: daniele-mng Date: Fri, 17 Jan 2025 10:42:45 +0100 Subject: [PATCH] fix: not selectable radio btn in details filter --- .../components/powerfilter/solutiontypegroup.jsx | 14 +++++++------- src/web/pages/reports/detailsfilterdialog.jsx | 5 ++++- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/web/components/powerfilter/solutiontypegroup.jsx b/src/web/components/powerfilter/solutiontypegroup.jsx index 3b8a09f609..ddf352276a 100644 --- a/src/web/components/powerfilter/solutiontypegroup.jsx +++ b/src/web/components/powerfilter/solutiontypegroup.jsx @@ -48,9 +48,9 @@ const SolutionTypesFilterGroup = ({filter, onChange}) => { checked={!isDefined(solutionType) || solutionType === 'All'} data-testid="filter-solution-all" name="All" + title={_('All')} onChange={handleSolutionTypeChange} - > - {_('All')} + /> @@ -59,10 +59,10 @@ const SolutionTypesFilterGroup = ({filter, onChange}) => { checked={solutionType === 'Workaround'} data-testid="filter-solution-workaround" name="Workaround" + title={_('Workaround')} onChange={handleSolutionTypeChange} /> - {_('Workaround')} @@ -71,10 +71,10 @@ const SolutionTypesFilterGroup = ({filter, onChange}) => { checked={solutionType === 'Mitigation'} data-testid="filter-solution-mitigation" name="Mitigation" + title={_('Mitigation')} onChange={handleSolutionTypeChange} /> - {_('Mitigation')} @@ -85,10 +85,10 @@ const SolutionTypesFilterGroup = ({filter, onChange}) => { checked={solutionType === 'VendorFix'} data-testid="filter-solution-vendor-fix" name="VendorFix" + title={_('Vendor Fix')} onChange={handleSolutionTypeChange} /> - {_('Vendor fix')} @@ -97,10 +97,10 @@ const SolutionTypesFilterGroup = ({filter, onChange}) => { checked={solutionType === 'NoneAvailable'} data-testid="filter-solution-none-available" name="NoneAvailable" + title={_('None available')} onChange={handleSolutionTypeChange} /> - {_('None available')} @@ -109,10 +109,10 @@ const SolutionTypesFilterGroup = ({filter, onChange}) => { checked={solutionType === 'WillNotFix'} data-testid="filter-solution-will-not-fix" name="WillNotFix" + title={_('Will not fix')} onChange={handleSolutionTypeChange} /> - {_('Will not fix')}{' '} diff --git a/src/web/pages/reports/detailsfilterdialog.jsx b/src/web/pages/reports/detailsfilterdialog.jsx index 510930cd82..c28ad9617c 100644 --- a/src/web/pages/reports/detailsfilterdialog.jsx +++ b/src/web/pages/reports/detailsfilterdialog.jsx @@ -125,7 +125,10 @@ const ReportDetailsFilterDialog = ({ /> )} - + onFilterChange(value)} + />