Skip to content

Commit

Permalink
Update ColumnFilter.js to allow clear button to show when menu button…
Browse files Browse the repository at this point in the history
… is hidden (#5803)

Fixed Issue where clear button will not be rendered if menu button is not rendered. In original issue fix listed below, I think that the check implemented in this issue was unintentionally placed in the createClearButton method

In reference to this issue:
#4994

And this commit:
deec2b2
  • Loading branch information
cassenhp authored Jan 19, 2024
1 parent 39244b2 commit f40b5f8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions components/lib/datatable/ColumnFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -563,10 +563,6 @@ export const ColumnFilter = React.memo((props) => {
};

const createClearButton = () => {
if (!showMenuButton()) {
return null;
}

const filterClearIconProps = mergeProps(
{
'aria-hidden': true
Expand Down

0 comments on commit f40b5f8

Please sign in to comment.