mig-schema-table 3.0.110 → 3.0.112

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.
@@ -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/dist/index.css CHANGED
@@ -156,6 +156,9 @@
156
156
  align-items: center;
157
157
  cursor: pointer;
158
158
  }
159
+ .schema-table-menu li .react-datepicker {
160
+ width: 20.5rem;
161
+ }
159
162
  .schema-table-menu li:hover {
160
163
  background-color: #eff6fb;
161
164
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mig-schema-table",
3
- "version": "3.0.110",
3
+ "version": "3.0.112",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist/"