material-react-table 1.5.8 → 1.5.9

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.
@@ -1603,7 +1603,7 @@ const MRT_FilterTextField = ({ header, rangeFilterIndex, table, }) => {
1603
1603
  },
1604
1604
  }, margin: "none", placeholder: filterChipLabel || isSelectFilter || isMultiSelectFilter
1605
1605
  ? undefined
1606
- : filterPlaceholder, onChange: handleChange, onClick: (e) => e.stopPropagation(), select: isSelectFilter || isMultiSelectFilter, value: filterValue, variant: "standard", InputProps: {
1606
+ : filterPlaceholder, onChange: handleChange, onClick: (e) => e.stopPropagation(), select: isSelectFilter || isMultiSelectFilter, value: filterValue !== null && filterValue !== void 0 ? filterValue : '', variant: "standard", InputProps: {
1607
1607
  startAdornment: showChangeModeButton ? (React.createElement(InputAdornment, { position: "start" },
1608
1608
  React.createElement(Tooltip, { arrow: true, title: localization.changeFilterMode },
1609
1609
  React.createElement("span", null,
@@ -2595,7 +2595,7 @@ const MRT_Table = ({ table }) => {
2595
2595
  virtualPaddingLeft,
2596
2596
  virtualPaddingRight,
2597
2597
  };
2598
- return (React.createElement(Table, Object.assign({ stickyHeader: enableStickyHeader || isFullScreen }, tableProps, { sx: (theme) => (Object.assign({ display: layoutMode === 'grid' ? 'grid' : 'table', tableLayout: layoutMode !== 'grid' && enableColumnResizing ? 'fixed' : undefined }, ((tableProps === null || tableProps === void 0 ? void 0 : tableProps.sx) instanceof Function
2598
+ return (React.createElement(Table, Object.assign({ stickyHeader: enableStickyHeader || isFullScreen }, tableProps, { sx: (theme) => (Object.assign({ borderCollapse: 'separate', display: layoutMode === 'grid' ? 'grid' : 'table', tableLayout: layoutMode !== 'grid' && enableColumnResizing ? 'fixed' : undefined }, ((tableProps === null || tableProps === void 0 ? void 0 : tableProps.sx) instanceof Function
2599
2599
  ? tableProps.sx(theme)
2600
2600
  : tableProps === null || tableProps === void 0 ? void 0 : tableProps.sx))) }),
2601
2601
  enableTableHead && React.createElement(MRT_TableHead, Object.assign({}, props)),