@visns-studio/visns-components 5.13.10 → 5.13.11

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.
package/package.json CHANGED
@@ -88,7 +88,7 @@
88
88
  "react-dom": "^17.0.0 || ^18.0.0"
89
89
  },
90
90
  "name": "@visns-studio/visns-components",
91
- "version": "5.13.10",
91
+ "version": "5.13.11",
92
92
  "description": "Various packages to assist in the development of our Custom Applications.",
93
93
  "main": "src/index.js",
94
94
  "files": [
@@ -450,7 +450,7 @@ const DataGrid = forwardRef(
450
450
  if (gridRef.current?.api) {
451
451
  gridRef.current.api.forceUpdate();
452
452
  }
453
- }, 10);
453
+ }, 50); // Increased delay to ensure proper rendering consistency
454
454
  });
455
455
 
456
456
  return sqlResult.then((res) => ({
@@ -1208,6 +1208,14 @@ const DataGrid = forwardRef(
1208
1208
 
1209
1209
  const handleReload = () => {
1210
1210
  gridRef.current.paginationProps.reload();
1211
+
1212
+ // Force grid to recalculate row heights after reload
1213
+ // This fixes the row height rendering issue after filter changes
1214
+ setTimeout(() => {
1215
+ if (gridRef.current?.api) {
1216
+ gridRef.current.api.forceUpdate();
1217
+ }
1218
+ }, 50); // Increased delay to ensure proper rendering after reload
1211
1219
  };
1212
1220
 
1213
1221
  const handleGroupAction = async (groupValue, iconConfig) => {
@@ -1312,6 +1320,13 @@ const DataGrid = forwardRef(
1312
1320
  // Reload grid data if needed
1313
1321
  if (gridRef.current && gridRef.current.paginationProps) {
1314
1322
  gridRef.current.paginationProps.reload();
1323
+
1324
+ // Force grid to recalculate row heights after reload
1325
+ setTimeout(() => {
1326
+ if (gridRef.current?.api) {
1327
+ gridRef.current.api.forceUpdate();
1328
+ }
1329
+ }, 50);
1315
1330
  }
1316
1331
  } catch (error) {
1317
1332
  console.error('Group action fetch error:', error);
@@ -3130,6 +3145,13 @@ const DataGrid = forwardRef(
3130
3145
  // Force reload of data
3131
3146
  if (gridRef.current && gridRef.current.paginationProps) {
3132
3147
  gridRef.current.paginationProps.reload();
3148
+
3149
+ // Force grid to recalculate row heights after reload
3150
+ setTimeout(() => {
3151
+ if (gridRef.current?.api) {
3152
+ gridRef.current.api.forceUpdate();
3153
+ }
3154
+ }, 50);
3133
3155
  }
3134
3156
  }, [ajaxSetting?.url]);
3135
3157