Skip to content

Commit 07dd7ba

Browse files
authored
Merge pull request #7982 from marmelab/zd-691-FilterListItem-untoggle-bug-firefox
[Fix] Can't un-toggle filter through secondary action button in aside list
2 parents 05942f9 + 3a4095b commit 07dd7ba

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

packages/ra-ui-materialui/src/list/filter/FilterListItem.tsx

+7-8
Original file line numberDiff line numberDiff line change
@@ -189,14 +189,13 @@ export const FilterListItem = memo((props: FilterListItemProps) => {
189189
data-selected={isSelected ? 'true' : 'false'}
190190
/>
191191
{isSelected && (
192-
<ListItemSecondaryAction>
193-
<IconButton
194-
size="small"
195-
onClick={event => {
196-
event.stopPropagation();
197-
toggleFilter();
198-
}}
199-
>
192+
<ListItemSecondaryAction
193+
onClick={event => {
194+
event.stopPropagation();
195+
toggleFilter();
196+
}}
197+
>
198+
<IconButton size="small">
200199
<CancelIcon />
201200
</IconButton>
202201
</ListItemSecondaryAction>

0 commit comments

Comments
 (0)