Skip to content

Commit

Permalink
fix: not selectable radio btn in details filter
Browse files Browse the repository at this point in the history
  • Loading branch information
daniele-mng committed Jan 17, 2025
1 parent e3f835c commit c53ac89
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
14 changes: 7 additions & 7 deletions src/web/components/powerfilter/solutiontypegroup.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ const SolutionTypesFilterGroup = ({filter, onChange}) => {
checked={!isDefined(solutionType) || solutionType === 'All'}
data-testid="filter-solution-all"
name="All"
title={_('All')}
onChange={handleSolutionTypeChange}
></Radio>
<span>{_('All')}</span>
/>
</Row>
</TableData>
<TableData>
Expand All @@ -59,10 +59,10 @@ const SolutionTypesFilterGroup = ({filter, onChange}) => {
checked={solutionType === 'Workaround'}
data-testid="filter-solution-workaround"
name="Workaround"
title={_('Workaround')}
onChange={handleSolutionTypeChange}
/>
<SolutionTypeIcon type="Workaround" />
<span>{_('Workaround')}</span>
</Row>
</TableData>
<TableData>
Expand All @@ -71,10 +71,10 @@ const SolutionTypesFilterGroup = ({filter, onChange}) => {
checked={solutionType === 'Mitigation'}
data-testid="filter-solution-mitigation"
name="Mitigation"
title={_('Mitigation')}
onChange={handleSolutionTypeChange}
/>
<SolutionTypeIcon type="Mitigation" />
<span>{_('Mitigation')}</span>
</Row>
</TableData>
</TableRow>
Expand All @@ -85,10 +85,10 @@ const SolutionTypesFilterGroup = ({filter, onChange}) => {
checked={solutionType === 'VendorFix'}
data-testid="filter-solution-vendor-fix"
name="VendorFix"
title={_('Vendor Fix')}
onChange={handleSolutionTypeChange}
/>
<SolutionTypeIcon type="VendorFix" />
<span>{_('Vendor fix')}</span>
</Row>
</TableData>
<TableData>
Expand All @@ -97,10 +97,10 @@ const SolutionTypesFilterGroup = ({filter, onChange}) => {
checked={solutionType === 'NoneAvailable'}
data-testid="filter-solution-none-available"
name="NoneAvailable"
title={_('None available')}
onChange={handleSolutionTypeChange}
/>
<SolutionTypeIcon type="NoneAvailable" />
<span>{_('None available')}</span>
</Row>
</TableData>
<TableData>
Expand All @@ -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}
/>
<SolutionTypeIcon type="WillNotFix" />
<span>{_('Will not fix')}</span>{' '}
</Row>
</TableData>
</TableRow>
Expand Down
5 changes: 4 additions & 1 deletion src/web/pages/reports/detailsfilterdialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,10 @@ const ReportDetailsFilterDialog = ({
/>
)}

<SolutionTypeGroup filter={filter} onChange={onFilterValueChange} />
<SolutionTypeGroup
filter={filter}
onChange={value => onFilterChange(value)}
/>

<FilterSearchGroup
filter={filter}
Expand Down

0 comments on commit c53ac89

Please sign in to comment.