Skip to content

Commit

Permalink
Merge pull request #7982 from marmelab/zd-691-FilterListItem-untoggle…
Browse files Browse the repository at this point in the history
…-bug-firefox

[Fix] Can't un-toggle filter through secondary action button in aside list
  • Loading branch information
fzaninotto authored Jul 18, 2022
2 parents 05942f9 + 3a4095b commit 07dd7ba
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions packages/ra-ui-materialui/src/list/filter/FilterListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,14 +189,13 @@ export const FilterListItem = memo((props: FilterListItemProps) => {
data-selected={isSelected ? 'true' : 'false'}
/>
{isSelected && (
<ListItemSecondaryAction>
<IconButton
size="small"
onClick={event => {
event.stopPropagation();
toggleFilter();
}}
>
<ListItemSecondaryAction
onClick={event => {
event.stopPropagation();
toggleFilter();
}}
>
<IconButton size="small">
<CancelIcon />
</IconButton>
</ListItemSecondaryAction>
Expand Down

0 comments on commit 07dd7ba

Please sign in to comment.