Browse Source

fix grid loading mask not shown (#418)

Signed-off-by: ryjiang <jiangruiyi@gmail.com>
ryjiang 1 year ago
parent
commit
3de012eea9
1 changed files with 3 additions and 0 deletions
  1. 3 0
      client/src/components/grid/Grid.tsx

+ 3 - 0
client/src/components/grid/Grid.tsx

@@ -190,6 +190,9 @@ const AttuGrid: FC<AttuGridType> = props => {
 
       const rowCount = Math.floor(totleHeight / rowHeight);
 
+      // fix loading mask
+      setLoadingRowCount(rowCount);
+
       if (setRowsPerPage) {
         setRowsPerPage(rowCount);
       }