Checklist(Check off all the items before submitting)
[x] Build process is done without errors and all tests pass in /lib directory.
[x] Self-reviewed the code prior to submitting.
[x] Meets accessibility standards.
[x] Added/updated documentation to /website as needed.
[x] Added/updated tests as needed.
Description
Paginator fails when itemsPerPage is 0 and showGoToPage is true, since it is making this operation totalItems / itemsPerPage. The result of this operation (totalItems / 0) is Infinity. So when it is trying to make Array(Infinity) it fails.
Checklist (Check off all the items before submitting)
/lib
directory./website
as needed.Description Paginator fails when
itemsPerPage
is0
andshowGoToPage
istrue
, since it is making this operationtotalItems / itemsPerPage
. The result of this operation (totalItems / 0
) isInfinity
. So when it is trying to makeArray(Infinity)
it fails.Closes #1619