diff --git a/site/docs/api/table-options.md b/site/docs/api/table-options.md index 4e6a4959f0..3988362cbf 100644 --- a/site/docs/api/table-options.md +++ b/site/docs/api/table-options.md @@ -578,7 +578,7 @@ The table options are defined in `jQuery.fn.bootstrapTable.defaults`. - **Detail:** - When set pagination property, initialize the page size selecting list. If you include the `'All'` or `'Unlimited'` option, all the records will be shown in your table. + When set pagination property, initialize the page size selecting list. If you include the `'all'` or `'unlimited'` option, all the records will be shown in your table. - **Default:** `[10, 25, 50, 100]` diff --git a/src/bootstrap-table.js b/src/bootstrap-table.js index 57ffc19850..76f1090b09 100644 --- a/src/bootstrap-table.js +++ b/src/bootstrap-table.js @@ -1495,8 +1495,8 @@ pageList = [] for (const value of list) { pageList.push( - (value.toUpperCase() === o.formatAllRows().toUpperCase() || - value.toUpperCase() === 'UNLIMITED') + (value.toLowerCase() === o.formatAllRows().toLowerCase() || + ['all', 'unlimited'].includes(value.toLowerCase())) ? o.formatAllRows() : +value) } }