material-react-table 0.40.12 → 0.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1439,6 +1439,9 @@ const MRT_FilterTextField = ({ header, rangeFilterIndex, table, }) => {
1439
1439
  const handleFilterMenuOpen = (event) => {
1440
1440
  setAnchorEl(event.currentTarget);
1441
1441
  };
1442
+ useEffect(() => {
1443
+ setFilterValue('');
1444
+ }, [columnDef._filterFn]);
1442
1445
  if (columnDef.Filter) {
1443
1446
  return React.createElement(React.Fragment, null, (_e = columnDef.Filter) === null || _e === void 0 ? void 0 : _e.call(columnDef, { column, header, table }));
1444
1447
  }
@@ -1467,7 +1470,7 @@ const MRT_FilterTextField = ({ header, rangeFilterIndex, table, }) => {
1467
1470
  React.createElement("span", null,
1468
1471
  React.createElement(IconButton, { "aria-label": localization.changeFilterMode, onClick: handleFilterMenuOpen, size: "small", sx: { height: '1.75rem', width: '1.75rem' } },
1469
1472
  React.createElement(FilterListIcon, null)))),
1470
- filterChipLabel && (React.createElement(Chip, { onDelete: handleClearEmptyFilterChip, label: filterChipLabel })))) : (React.createElement(FilterListIcon, { style: { marginRight: '4px' } })),
1473
+ filterChipLabel && (React.createElement(Chip, { onDelete: handleClearEmptyFilterChip, label: filterChipLabel })))) : null,
1471
1474
  endAdornment: !filterChipLabel && (React.createElement(InputAdornment, { position: "end" },
1472
1475
  React.createElement(Tooltip, { arrow: true, placement: "right", title: (_g = localization.clearFilter) !== null && _g !== void 0 ? _g : '' },
1473
1476
  React.createElement("span", null,