MDL-68951 table: Page numbers are 1-indexed, not 0
authorAndrew Nicols <andrew@nicols.co.uk>
Mon, 8 Jun 2020 01:27:58 +0000 (09:27 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Mon, 8 Jun 2020 01:35:39 +0000 (09:35 +0800)
lib/table/amd/build/dynamic.min.js
lib/table/amd/build/dynamic.min.js.map
lib/table/amd/src/dynamic.js

index 29f5cbd..0060edc 100644 (file)
Binary files a/lib/table/amd/build/dynamic.min.js and b/lib/table/amd/build/dynamic.min.js differ
index 26c7b51..3cbcaea 100644 (file)
Binary files a/lib/table/amd/build/dynamic.min.js.map and b/lib/table/amd/build/dynamic.min.js.map differ
index 59c4fb5..b812a1f 100644 (file)
@@ -249,7 +249,7 @@ export const getPageNumber = tableRoot => getTableData(tableRoot).tablePageNumbe
  * @returns {Promise}
  */
 export const setPageSize = (tableRoot, pageSize, refreshContent = true) =>
-    updateTable(tableRoot, {pageSize, pageNumber: 0}, refreshContent);
+    updateTable(tableRoot, {pageSize, pageNumber: 1}, refreshContent);
 
 /**
  * Get the current page size.