Describe the bug
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.
Expected behaviour
It should not fail and it should be shown like this:
Describe the bug 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.Expected behaviour It should not fail and it should be shown like this:
Screenshots