@ctlyst.id/internal-ui 5.0.3 → 5.0.4

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.js CHANGED
@@ -1442,7 +1442,7 @@ var useDataTable = ({
1442
1442
  isIndeterminate: table2.getIsSomeRowsSelected(),
1443
1443
  onChange: () => {
1444
1444
  if (table2.getIsAllRowsSelected()) {
1445
- table2.getToggleAllRowsSelectedHandler();
1445
+ table2.toggleAllRowsSelected();
1446
1446
  } else if (disabledRow) {
1447
1447
  const prevSelected = table2.getFilteredSelectedRowModel().rows.length;
1448
1448
  const rows = table2.getPaginationRowModel().rows.filter((row) => !disabledRow(row.original));
@@ -1452,7 +1452,7 @@ var useDataTable = ({
1452
1452
  table2.setRowSelection(Object.fromEntries(rows.map((row) => [row.id, true])));
1453
1453
  }
1454
1454
  } else {
1455
- table2.getToggleAllRowsSelectedHandler();
1455
+ table2.toggleAllRowsSelected();
1456
1456
  }
1457
1457
  }
1458
1458
  }
@@ -1470,7 +1470,7 @@ var useDataTable = ({
1470
1470
  ) })
1471
1471
  }
1472
1472
  ],
1473
- []
1473
+ [disabledRow]
1474
1474
  );
1475
1475
  const generateColumn = () => {
1476
1476
  if (withSelectedRow) {