mig-schema-table 3.0.109 → 3.0.111

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.
@@ -31,7 +31,8 @@ const FilterMenuComponent = ({ columnFilterValue, onChange, onInputKeyDown, prop
31
31
  const changeOperationValue = (operation, el, persistState) => {
32
32
  const newValue = Object.assign(Object.assign({}, numberColumnFilterValue), { [operation]: el.value === "" ? undefined : parseInt(el.value) });
33
33
  const hasValue = Object.values(newValue).find((opValue) => isFinite(opValue));
34
- onChange(hasValue !== undefined && (minimum ? hasValue >= minimum : true)
34
+ onChange(hasValue !== undefined &&
35
+ (minimum !== undefined ? hasValue >= minimum : true)
35
36
  ? newValue
36
37
  : undefined, persistState);
37
38
  };
@@ -61,6 +61,17 @@ function SchemaTable({ Heading = VariableSizeList, checkedIndexes, config, custo
61
61
  const [searchQuery, setSearchQuery] = React.useState((locationHash === null || locationHash === void 0 ? void 0 : locationHash.searchQuery) || "");
62
62
  const [columnFilterMap, setColumnFilterMap] = React.useState((locationHash === null || locationHash === void 0 ? void 0 : locationHash.columnFilterMap) || defaultColumnFilters || {});
63
63
  const [isDirty, setIsDirty] = React.useState(false);
64
+ React.useEffect(() => {
65
+ const removeThMenuConfig = () => {
66
+ setThMenuConfig(undefined);
67
+ };
68
+ window.addEventListener("resize", removeThMenuConfig);
69
+ window.addEventListener("scroll", removeThMenuConfig);
70
+ return () => {
71
+ window.removeEventListener("resize", removeThMenuConfig);
72
+ window.removeEventListener("scroll", removeThMenuConfig);
73
+ };
74
+ }, []);
64
75
  React.useEffect(() => {
65
76
  if (isDataFunction) {
66
77
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mig-schema-table",
3
- "version": "3.0.109",
3
+ "version": "3.0.111",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist/"