| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
PatternFly-React preview: https://patternfly-react-pr-2558.surge.sh |
Sorry, something went wrong.
| static defaultProps = { | ||
| className: '', | ||
| lastPage: 0, | ||
| firstIndex: 0, |
There was a problem hiding this comment.
Don't think we need this here. Did you mean firstPage?
Sorry, something went wrong.
There was a problem hiding this comment.
Yup, at first I passed firstIndex and renamed it to firstPage good catch!
Sorry, something went wrong.
| return ( | ||
| <Pagination | ||
| itemCount={523} | ||
| itemCount={0} |
There was a problem hiding this comment.
Perhaps create another example?
Sorry, something went wrong.
There was a problem hiding this comment.
@karelhala I am seeing some unexpected behavior. When I initially open the component on Firefox I am seeing a red error border around the text field.
But if I refresh the page, this goes away. Then on either Firefox or Chrome I am able to place focus in the field and type. But no matter what I type the value is set to 1. Can the field just show 0 and be disabled?
Sorry, something went wrong.
|
@mcarrano good point! I disabled all navigation elements including per page (it doesn't make any sense to change per page if server returns 0 items) and fixed that firefox issue by adding correct min value to input. |
Sorry, something went wrong.
There was a problem hiding this comment.
Looks great @karelhala !
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
What:
When there is 0 items or negative number for pagination show 0th page out of 0 and disable paginating.

fix #2557